summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/string/certificate.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/string/certificate.rb b/lib/puppet/string/certificate.rb
index 7b72b112c..b231cafb1 100644
--- a/lib/puppet/string/certificate.rb
+++ b/lib/puppet/string/certificate.rb
@@ -21,7 +21,9 @@ Puppet::String::Indirector.define(:certificate, '0.0.1') do
action :sign do
when_invoked do |name, options|
- Puppet::SSL::Host.indirection.save(Puppet::SSL::Host.new(name))
+ host = Puppet::SSL::Host.new(name)
+ host.desired_state = 'signed'
+ Puppet::SSL::Host.indirection.save(host)
end
end