aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-12-05 17:26:22 -0500
committerMicah Anderson <micah@riseup.net>2008-12-05 17:26:49 -0500
commit8aa207e69e53a6ceedd4c48c7df119d73dd0b9b9 (patch)
treef6f265cd13aa470816f9a3ec866dffe4aa6678e9 /templates
parent61be641d9eb8fbb9c03fc002093f8ce7257d0bde (diff)
downloadpuppet-backupninja-8aa207e69e53a6ceedd4c48c7df119d73dd0b9b9.tar.gz
puppet-backupninja-8aa207e69e53a6ceedd4c48c7df119d73dd0b9b9.tar.bz2
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
Diffstat (limited to 'templates')
-rw-r--r--templates/rdiff.conf.erb4
1 files changed, 2 insertions, 2 deletions
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 -%>