]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
fix variable instanciation in template
authorAntoine Beaupre <anarcat@koumbit.org>
Sun, 7 Dec 2008 00:56:45 +0000 (19:56 -0500)
committerAntoine Beaupre <anarcat@koumbit.org>
Sun, 7 Dec 2008 00:56:45 +0000 (19:56 -0500)
templates/rdiff.conf.erb

index 5e319a2c5c741cf00b7936f0217a6a5773c4f015..f5548e425d53e38928ada1720d2205f3e9f46db6 100644 (file)
@@ -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 -%>