diff options
| author | Markus Roberts <Markus@reality.com> | 2010-06-09 17:47:39 -0700 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 2396ebac9021eaa4a2983e60902c04cc9e0db0ee (patch) | |
| tree | 05015dc5d67aca35dd235a6229fb360ecb6b68e9 /test/puppet | |
| parent | 8128311690a25d864087a7aee31b233a459345fd (diff) | |
Use the 'root' feature rather than directly checking the uid
Jesse fixed all these but David and others moved them and introduced some more so...
Diffstat (limited to 'test/puppet')
| -rwxr-xr-x | test/puppet/defaults.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/puppet/defaults.rb b/test/puppet/defaults.rb index d53c23217..bab6644d2 100755 --- a/test/puppet/defaults.rb +++ b/test/puppet/defaults.rb @@ -40,7 +40,7 @@ class TestPuppetDefaults < Test::Unit::TestCase # we don't want user defaults in /, or root defaults in ~ def testDefaultsInCorrectRoots notval = nil - if Puppet::Util::SUIDManager.uid == 0 + if Puppet.features.root? notval = Regexp.new(File.expand_path("~")) else notval = /^\/var|^\/etc/ |
