diff options
Diffstat (limited to 'test/lib/puppettest/support/helpers.rb')
-rw-r--r-- | test/lib/puppettest/support/helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/puppettest/support/helpers.rb b/test/lib/puppettest/support/helpers.rb index 7fae994d9..cbcbcb1f6 100644 --- a/test/lib/puppettest/support/helpers.rb +++ b/test/lib/puppettest/support/helpers.rb @@ -3,7 +3,7 @@ require 'puppettest' module PuppetTest def nonrootuser Etc.passwd { |user| - if user.uid != Process.uid and user.uid > 0 + if user.uid != Puppet::SUIDManager.uid and user.uid > 0 return user end } @@ -11,7 +11,7 @@ module PuppetTest def nonrootgroup Etc.group { |group| - if group.gid != Process.gid and group.gid > 0 + if group.gid != Puppet::SUIDManager.gid and group.gid > 0 return group end } |