aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2008-12-06 19:56:45 -0500
committerAntoine Beaupre <anarcat@koumbit.org>2008-12-06 19:56:45 -0500
commitf51344acc8a55fe2dd0b9b17331e913d6ef723d0 (patch)
tree53090e4e86deafdb3e32fd55dd0af1ab7a82f551 /templates
parent5b9c6255b87f0cf029320973053e4f7ad98063f0 (diff)
downloadpuppet-backupninja-f51344acc8a55fe2dd0b9b17331e913d6ef723d0.tar.gz
puppet-backupninja-f51344acc8a55fe2dd0b9b17331e913d6ef723d0.tar.bz2
fix variable instanciation in template
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 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 -%>