Skip to content

Commit

Permalink
Fixes #35188 - fix puppet plugin detection for permissions issues (#573)
Browse files Browse the repository at this point in the history
the discovery detection for puppet plugin presence didn't work

(cherry picked from commit ea10b98)
  • Loading branch information
ronlavi2412 committed Jan 16, 2023
1 parent 544bb0b commit 2a7d096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman_discovery/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class Engine < ::Rails::Engine
:edit_discovery_rules,
:destroy_discovery_rules,
]
if defined?(ForemanPuppet::VERSION)
if defined?(ForemanPuppet::Engine)
MANAGER += [ :view_environments, :view_puppetclasses ]
end
role "Discovery Reader", READER, "Role granting permissions to view discovered hosts"
Expand Down

0 comments on commit 2a7d096

Please sign in to comment.