From b5b2bf2b90432843f7cfa6a2d5f50173feb06f51 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 15 May 2012 14:17:50 -0400 Subject: [PATCH] fix a thing --- lib/puppet-standalone-mashup/capistrano.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet-standalone-mashup/capistrano.rb b/lib/puppet-standalone-mashup/capistrano.rb index df72f7c..d0248cb 100644 --- a/lib/puppet-standalone-mashup/capistrano.rb +++ b/lib/puppet-standalone-mashup/capistrano.rb @@ -18,7 +18,7 @@ module Capistrano def replace_placeholders(command, channel) command = _replace_placeholders(command, channel) - command.gsub!('$CAPISTRANO:TARGETHOSTNAME$', channel[:server].options[:target_hostname]) + command.gsub!('$CAPISTRANO:TARGETHOSTNAME$', channel[:server].options[:target_hostname] || '') command end end