From: Micah Anderson Date: Wed, 11 Mar 2009 20:54:34 +0000 (-0400) Subject: the default value for sshoptions is 'false' and this value ends up getting X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cb05e48d7ed052c2ddad5a0a20e0d253080675ae;p=puppet-backupninja.git the default value for sshoptions is 'false' and this value ends up getting set into the rdiff config, so 'sshoptions = false' which results in the host attempting to connect to a hostname called 'false'. This change only includes it if the value is not 'false'. --- diff --git a/templates/rdiff.conf.erb b/templates/rdiff.conf.erb index 0e19125..a28917a 100644 --- a/templates/rdiff.conf.erb +++ b/templates/rdiff.conf.erb @@ -33,7 +33,7 @@ type = local if VersionComparer.versioncmp(Puppet.version,'0.24.6') >= 0 %w{type host directory user sshoptions}.each do |v| - if has_variable?(v) + if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%> <%= v + ' = ' + instance_variable_get("@#{v}").to_s %> <%-