From 8aa207e69e53a6ceedd4c48c7df119d73dd0b9b9 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Fri, 5 Dec 2008 17:26:22 -0500 Subject: Change to the new format required in templates now that scope is no longer availble in templates since 0.24.6: http://projects.reductivelabs.com/issues/show/1177 --- templates/rdiff.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/rdiff.conf.erb b/templates/rdiff.conf.erb index f5548e4..5e319a2 100644 --- a/templates/rdiff.conf.erb +++ b/templates/rdiff.conf.erb @@ -29,7 +29,7 @@ type = local [dest] <% %w{type host directory user sshoptions}.each do |v| - if @scope.lookupvar(v) - -%><%= v + ' = ' + @scope.lookupvar(v) + "\n" %><% + if has_variable?(v) + -%><%= v + ' = ' + get_instance_var("@#{v}") + "\n" %><% end end -%> -- cgit v1.2.3