diff options
Diffstat (limited to 'lib/puppet/provider/file/posix.rb')
-rw-r--r-- | lib/puppet/provider/file/posix.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/provider/file/posix.rb b/lib/puppet/provider/file/posix.rb index 63d80ead1..a2d102152 100644 --- a/lib/puppet/provider/file/posix.rb +++ b/lib/puppet/provider/file/posix.rb @@ -34,7 +34,7 @@ Puppet::Type.type(:file).provide :posix do if value =~ /^\d+$/ uid = Integer(value) elsif value.is_a?(String) - fail "Could not find user %s" % value unless uid = uid(value) + fail "Could not find user #{value}" unless uid = uid(value) else uid = value end @@ -76,7 +76,7 @@ Puppet::Type.type(:file).provide :posix do # large UIDs instead of negative ones. This isn't a Ruby bug, # it's an OS X bug, since it shows up in perl, too. if currentvalue > Puppet[:maximum_uid].to_i - self.warning "Apparently using negative UID (%s) on a platform that does not consistently handle them" % currentvalue + self.warning "Apparently using negative UID (#{currentvalue}) on a platform that does not consistently handle them" currentvalue = :silly end @@ -96,12 +96,12 @@ Puppet::Type.type(:file).provide :posix do break if uid = validuser?(user) end - raise Puppet::Error, "Could not find user(s) %s" % should.join(",") unless uid + raise Puppet::Error, "Could not find user(s) #{should.join(",")}" unless uid begin File.send(method, uid, nil, path) rescue => detail - raise Puppet::Error, "Failed to set owner to '%s': %s" % [uid, detail] + raise Puppet::Error, "Failed to set owner to '#{uid}': #{detail}" end return :file_changed |