diff options
Diffstat (limited to 'lib/puppet/provider/service/redhat.rb')
-rwxr-xr-x | lib/puppet/provider/service/redhat.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/provider/service/redhat.rb b/lib/puppet/provider/service/redhat.rb index f3d5caee0..c49df3142 100755 --- a/lib/puppet/provider/service/redhat.rb +++ b/lib/puppet/provider/service/redhat.rb @@ -25,7 +25,7 @@ Puppet::Type.type(:service).provide :redhat, :parent => :init, :source => :init begin output = chkconfig(@resource[:name], :off) rescue Puppet::ExecutionFailure - raise Puppet::Error, "Could not disable %s: %s" % [self.name, output] + raise Puppet::Error, "Could not disable #{self.name}: #{output}" end end @@ -51,12 +51,12 @@ Puppet::Type.type(:service).provide :redhat, :parent => :init, :source => :init begin output = chkconfig(@resource[:name], :on) rescue Puppet::ExecutionFailure => detail - raise Puppet::Error, "Could not enable %s: %s" % [self.name, detail] + raise Puppet::Error, "Could not enable #{self.name}: #{detail}" end end def initscript - raise Puppet::Error, "Do not directly call the init script for '%s'; use 'service' instead" % @resource[:name] + raise Puppet::Error, "Do not directly call the init script for '#{@resource[:name]}'; use 'service' instead" end # use hasstatus=>true when its set for the provider. |