summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/network/client/master.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb
index 832cc4303..6ae7d55b3 100644
--- a/lib/puppet/network/client/master.rb
+++ b/lib/puppet/network/client/master.rb
@@ -315,7 +315,7 @@ class Puppet::Network::Client::Master < Puppet::Network::Client
end
ensure
# Just make sure we remove the lock file if we set it.
- lockfile.unlock if locked and lockfile.lock
+ lockfile.unlock if locked and lockfile.locked?
end
def running?