summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/util.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb
index 906184c18..bddcf8533 100644
--- a/lib/puppet/util.rb
+++ b/lib/puppet/util.rb
@@ -272,7 +272,7 @@ module Util
command = command.collect { |i| i.to_s }
str = command.join(" ")
else
- raise "Must pass an array"
+ raise "Must pass an array" unless uid.nil? && gid.nil?
str = command
end
if respond_to? :debug