From 8ddd9947382579082cc4554b332ca1ec62d94942 Mon Sep 17 00:00:00 2001 From: Pieter van de Bruggen Date: Tue, 5 Apr 2011 16:41:14 -0700 Subject: (#6982) Patch the Certificate String against (#5528). Reviewed-By: Matt Robinson --- lib/puppet/string/certificate.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/puppet/string') 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 -- cgit