Revision 1b245d59
Added by Leos Stejskal over 1 year ago
app/services/foreman/renderer/scope/macros/inputs.rb | ||
---|---|---|
raise UndefinedInput.new(s: name) unless @input
|
||
raise WrongInputValueType.new(name: name, type: @input.value_type) if @input.value_type != 'resource'
|
||
|
||
return @input.preview(self) if preview?
|
||
|
||
return resource_klass.new if preview?
|
||
find_resource
|
||
end
|
||
|
Also available in: Unified diff
Fixes #35536 - Template input_resource macro & preview error (#9428)