summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/http/webrick.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/network/http/webrick.rb')
-rw-r--r--lib/puppet/network/http/webrick.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/network/http/webrick.rb b/lib/puppet/network/http/webrick.rb
index 30085ec47..3e7a28598 100644
--- a/lib/puppet/network/http/webrick.rb
+++ b/lib/puppet/network/http/webrick.rb
@@ -91,7 +91,7 @@ class Puppet::Network::HTTP::WEBrick
host = Puppet::SSL::Host.new
- host.generate unless host.key
+ host.generate unless host.certificate
raise Puppet::Error, "Could not retrieve certificate for %s and not running on a valid certificate authority" % host.name unless host.certificate