]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
Change to the new format required in templates now that scope is no longer availble...
authorMicah Anderson <micah@riseup.net>
Fri, 5 Dec 2008 22:26:22 +0000 (17:26 -0500)
committerMicah Anderson <micah@riseup.net>
Fri, 5 Dec 2008 22:26:49 +0000 (17:26 -0500)
0.24.6:
http://projects.reductivelabs.com/issues/show/1177

templates/rdiff.conf.erb

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