Actions
Bug #32849
openThe snippet 'redhat_register' threw an error: undefined method `katello_agent_enabled?'
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
After upgrading to Foreman 2.5.0, the redhat_register
provisioning snippet no longer works and throws an error:
There was an error rendering the ks EL template: ERF42-7327 [Foreman::Exception]: The snippet 'redhat_register' threw an error: undefined method `katello_agent_enabled?' for #<Foreman::Renderer::Scope::Provisioning:0x00007f1da167ce68>
The problem is located in this line:
redhat_install_agent = host_param_true?('redhat_install_agent', katello_agent_enabled?)
The macro katello_agent_enabled
seems to be Katello specific, which is not installed in our instance.
The macro has been introduced as part of #32458. Removing the macro restores the possibility to use the redhat_register snippet.
Actions