Actions
Bug #14143
closedChef client bootstrap detection fails in safe mode
Description
Since chef_enabled is using respond_to? it behaves differently in preview and real rendering. When safe mode is enabled, respond_to? does not find the method in safebox and results to false.
https://github.com/theforeman/community-templates/blob/develop/kickstart/provision.erb#L39
https://github.com/theforeman/community-templates/blob/develop/preseed/finish.erb#L13
Updated by Marek Hulán over 8 years ago
- Status changed from New to Rejected
- Assignee set to Marek Hulán
false alert, different template was picked :-) anyway a workaround would be
chef_enabled = @host.chef_proxy rescue NoMethodError
Actions