diff options
Diffstat (limited to 'lib/puppet/provider/service/redhat.rb')
-rwxr-xr-x | lib/puppet/provider/service/redhat.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/puppet/provider/service/redhat.rb b/lib/puppet/provider/service/redhat.rb index 27bdbb820..f3d5caee0 100755 --- a/lib/puppet/provider/service/redhat.rb +++ b/lib/puppet/provider/service/redhat.rb @@ -25,8 +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 %s: %s" % [self.name, output] end end @@ -52,8 +51,7 @@ 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 %s: %s" % [self.name, detail] end end |