Skip to content

Commit

Permalink
Revert "Display names in instances"
Browse files Browse the repository at this point in the history
This reverts commit 993a40d.
  • Loading branch information
raphink committed Apr 30, 2018
1 parent 15ec914 commit 19e4527
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/puppet/provider/user_right/secedit.rb
Expand Up @@ -64,12 +64,12 @@ def flush
end

def name_to_sid(users)
users.map { |user| Puppet::Util::Windows::SID.name_to_sid(user) }
users.map { |user| '*' + Puppet::Util::Windows::SID.name_to_sid(user) }
end

def sid_in_sync?(current, should)
return false unless current
current_sids = name_to_sid(current)
current_sids = current
specified_sids = name_to_sid(should)
(specified_sids & current_sids) == specified_sids
end
Expand All @@ -94,9 +94,7 @@ def self.instances
new({
:name => k,
:ensure => :present,
:sid => v.split(',').map { |sid|
Puppet::Util::Windows::SID.sid_to_name(sid.sub('*', ''))
},
:sid => v.split(','),
})
}
end
Expand Down

0 comments on commit 19e4527

Please sign in to comment.