From f51344acc8a55fe2dd0b9b17331e913d6ef723d0 Mon Sep 17 00:00:00 2001 From: Antoine Beaupre Date: Sat, 6 Dec 2008 19:56:45 -0500 Subject: fix variable instanciation in template --- 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 5e319a2..f5548e4 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 has_variable?(v) - -%><%= v + ' = ' + get_instance_var("@#{v}") + "\n" %><% + if @scope.lookupvar(v) + -%><%= v + ' = ' + @scope.lookupvar(v) + "\n" %><% end end -%> -- cgit v1.2.3