theforeman/foreman · error · UndefinedInput
Rendering failed, no input with name "%{s}" for input macro
Error message
Rendering failed, no input with name "%{s}" for input macro found What it means
Error "Rendering failed, no input with name "%{s}" for input macro found" thrown in theforeman/foreman.
Source
Thrown at app/services/foreman/renderer/scope/macros/inputs.rb:25
extend ApipieDSL::Module
apipie :class, 'Macros related to template inputs' do
name 'Template Inputs'
sections only: %w[all reports provisioning jobs partition_tables]
end
apipie :method, 'Returns the value of template input' do
required :name, String, desc: 'name of the template input'
raises error: UndefinedInput, desc: 'when there is no input with such name defined for the current template'
returns Object, desc: 'The value of template input'
example 'input("Include Facts") #=> "yes"'
end
def input(name)
input = template.template_inputs&.find_by_name(name)
if input
preview? ? input.preview(self) : input.value(self)
else
raise UndefinedInput.new(s: name)
end
end
apipie :method, 'Find and returns resource object from the template input value' do
required :name, String, desc: 'name of the template input'
raises error: UndefinedInput, desc: 'when there is no input with such name defined for the current template'
raises error: WrongInputValueType, desc: 'when the input value type is not "resource"'
returns Object, desc: 'The resource object'
example 'input_resource("hostgroup") #=> "ActiveRecord object"'
end
def input_resource(name)
@input = template.template_inputs&.find_by_name(name)
raise UndefinedInput.new(s: name) unless @input
raise WrongInputValueType.new(name: name, type: @input.value_type) if @input.value_type != 'resource'
return resource_klass.new if preview?
find_resourceView on GitHub (pinned to 6b05625475)
When it happens
Trigger: Thrown at app/services/foreman/renderer/scope/macros/inputs.rb:25 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23).
Data as JSON: /api/errors/835b4643f09f86bf.
Report an issue: GitHub.