From cb05e48d7ed052c2ddad5a0a20e0d253080675ae Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 11 Mar 2009 16:54:34 -0400 Subject: 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'. --- templates/rdiff.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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 %> <%- -- cgit v1.2.3