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.
Updated by Matt Fields over 2 years ago
- Found in Releases 2.5.1, 2.5.2, 2.5.3, 2.5.4, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.3.0 added
Found in all releases since 2.5.0-rc-1
Actions