Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selinux_login provider typo & title mismatch #382

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/puppet/provider/selinux_login/semanage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def self.parse_helper_lines(lines)
# local %cn_cegbu_aconex_fr-dev-platform-priv unconfined_u
source_str, selinux_login_name, selinux_user = split

key = "#{selinux_login_name}_#{selinux_user}"
key = selinux_login_name
source =
case source_str
when 'policy' then :policy
Expand Down Expand Up @@ -109,7 +109,7 @@ def self.prefetch(resources)
resource.provider = provider
resource[:ensure] = :present if provider.source == :policy
else
resources.each_values do |res|
resources.each_value do |res|
next unless res[:selinux_user] == provider.selinux_user && res[:selinux_login_name] == provider.selinux_login_name

warning("Selinux_login['#{res[:name]}']: title does not match its login ('#{provider.name}' != '#{provider.selinux_login_name}')")
Expand Down