Template compilation expects this variable to be
set.

Reviewed-by: Jeff McCune

Signed-off-by: Dan Bode <[email protected]>
---
 lib/puppet/cloudpack.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/puppet/cloudpack.rb b/lib/puppet/cloudpack.rb
index 63f3815..1d94f68 100644
--- a/lib/puppet/cloudpack.rb
+++ b/lib/puppet/cloudpack.rb
@@ -490,7 +490,7 @@ module Puppet::CloudPack
       options[:tmp_dir] = connections[:ssh].run("bash -c 
'TMP_DIR=/tmp/installer_script.$(echo $RANDOM); mkdir $TMP_DIR; echo 
$TMP_DIR'")[0].stdout.chomp
 
       # This requires the "guid" gem
-      certname = Guid.new.to_s
+      options[:certname] ||= Guid.new.to_s
 
       upload_payloads(connections[:scp], options)
       tmp_script_path = compile_template(options)
-- 
1.7.5.4

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to