summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/puppet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb
index b9a09bb49..20d879fdf 100644
--- a/lib/puppet.rb
+++ b/lib/puppet.rb
@@ -242,7 +242,7 @@ module Puppet
# Handle restarting.
trap(:HUP) do
- if client = @services.find { |s| s.is_a? Puppet::Network::Client::Master } and client.running?
+ if client = @services.find { |s| s.is_a? Puppet::Network::Client.master } and client.running?
client.restart
else
Puppet.restart