Skip to content
Snippets Groups Projects
Verified Commit 65866ddd authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Inject passwordstate into discovery controller

parent a9d0b350
No related branches found
No related tags found
No related merge requests found
Pipeline #145489 failed
......@@ -28,6 +28,9 @@ module ForemanPasswordstate
HostsController.prepend ForemanPasswordstate::HostsControllerExtensions
HostgroupsController.prepend ForemanPasswordstate::HostgroupsControllerExtensions
Operatingsystem.prepend ForemanPasswordstate::OperatingsystemExtensions
if Foreman::Plugin.installed?('foreman_discovery')
DiscoveredHostsController.prepend ForemanPasswordstate::HostsControllerExtensions
end
rescue StandardError => e
Rails.logger.fatal "foreman_passwordstate: skipping engine hook (#{e})"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment