summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorajax <ajax@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-29 19:07:53 +0000
committerajax <ajax@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-29 19:07:53 +0000
commit04c0c1429efadd15d940097992e084870077846c (patch)
treee6d31efdc898b15bf52be85231e4199b5064bbf6 /lib/puppet
parent8214c485816bc852ee33636494b4fd447629961f (diff)
downloadpuppet-04c0c1429efadd15d940097992e084870077846c.tar.gz
puppet-04c0c1429efadd15d940097992e084870077846c.tar.xz
puppet-04c0c1429efadd15d940097992e084870077846c.zip
Changing warnonce to Puppet::Util::Warnings.warnonce.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1706 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/suidmanager.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/suidmanager.rb b/lib/puppet/suidmanager.rb
index d6bbc90f1..4f94ddde2 100644
--- a/lib/puppet/suidmanager.rb
+++ b/lib/puppet/suidmanager.rb
@@ -12,7 +12,7 @@ module Puppet
newmethod = method
if platform == "Darwin"
- warnonce "Cannot change real UID on Darwin"
+ Puppet::Util::Warnings.warnonce "Cannot change real UID on Darwin"
newmethod = ("e" + method.to_s).intern
end
@@ -36,7 +36,7 @@ module Puppet
# NOTE: this would be much better facilitated with a specialized popen()
# (see the test suite for more details.)
if (Facter['rubyversion'].value <=> "1.8.4") < 0
- warnonce "Cannot capture STDERR when running as another user on Ruby < 1.8.4"
+ Puppet::Util::Warnings.warnonce "Cannot capture STDERR when running as another user on Ruby < 1.8.4"
output = %x{#{command}}
else
output = %x{#{command} 2>&1}