From 10d285506154265fc348843350ec800aed1d74fc Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 16 Jan 2018 09:31:26 +0000 Subject: [PATCH] Qualify property names --- cookbooks/imagery/resources/site.rb | 2 +- cookbooks/systemd/resources/tmpfile.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index e4c2c6f86..aa5d8ebf2 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -52,7 +52,7 @@ action :create do user "root" group "root" mode 0o644 - variables :title => title + variables :title => new_resource.title end cookbook_file "/srv/#{new_resource.site}/imagery.css" do diff --git a/cookbooks/systemd/resources/tmpfile.rb b/cookbooks/systemd/resources/tmpfile.rb index 91ede2c14..070a9cc8d 100644 --- a/cookbooks/systemd/resources/tmpfile.rb +++ b/cookbooks/systemd/resources/tmpfile.rb @@ -54,6 +54,6 @@ end action_class do def unit_name - path.sub(%r{^/}, "").gsub(%r{/}, "-") + new_resource.path.sub(%r{^/}, "").gsub(%r{/}, "-") end end -- 2.43.2