diff options
Diffstat (limited to 'lib/puppet/property/ensure.rb')
-rw-r--r-- | lib/puppet/property/ensure.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/puppet/property/ensure.rb b/lib/puppet/property/ensure.rb index 908de8b1b..2b1d1d433 100644 --- a/lib/puppet/property/ensure.rb +++ b/lib/puppet/property/ensure.rb @@ -49,14 +49,12 @@ class Puppet::Property::Ensure < Puppet::Property elsif newvalue == :absent return "removed" else - return "%s changed '%s' to '%s'" % - [self.name, self.is_to_s(currentvalue), self.should_to_s(newvalue)] + return "%s changed '%s' to '%s'" % [self.name, self.is_to_s(currentvalue), self.should_to_s(newvalue)] end rescue Puppet::Error, Puppet::DevError raise rescue => detail - raise Puppet::DevError, "Could not convert change %s to string: %s" % - [self.name, detail] + raise Puppet::DevError, "Could not convert change %s to string: %s" % [self.name, detail] end end @@ -71,8 +69,7 @@ class Puppet::Property::Ensure < Puppet::Property elsif @resource.respond_to?(:exists?) result = @resource.exists? else - raise Puppet::DevError, "No ability to determine if %s exists" % - @resource.class.name + raise Puppet::DevError, "No ability to determine if %s exists" % @resource.class.name end if result return :present |