diff options
Diffstat (limited to 'lib/puppet/agent.rb')
-rw-r--r-- | lib/puppet/agent.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/agent.rb b/lib/puppet/agent.rb index 84bda6756..3c8a2af67 100644 --- a/lib/puppet/agent.rb +++ b/lib/puppet/agent.rb @@ -28,7 +28,7 @@ class Puppet::Agent # Perform a run with our client. def run(*args) if running? - Puppet.notice "Run of %s already in progress; skipping" % client_class + Puppet.notice "Run of #{client_class} already in progress; skipping" return end result = nil @@ -39,7 +39,7 @@ class Puppet::Agent sync.synchronize { lock { result = client.run(*args) } } rescue => detail puts detail.backtrace if Puppet[:trace] - Puppet.err "Could not run %s: %s" % [client_class, detail] + Puppet.err "Could not run #{client_class}: #{detail}" end end true @@ -63,7 +63,7 @@ class Puppet::Agent return if splayed? time = rand(Integer(Puppet[:splaylimit]) + 1) - Puppet.info "Sleeping for %s seconds (splay is enabled)" % time + Puppet.info "Sleeping for #{time} seconds (splay is enabled)" sleep(time) @splayed = true end @@ -98,7 +98,7 @@ class Puppet::Agent raise rescue Exception => detail puts detail.backtrace if Puppet[:trace] - Puppet.err "Could not create instance of %s: %s" % [client_class, detail] + Puppet.err "Could not create instance of #{client_class}: #{detail}" return end yield @client |