]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/tmpfile.rb
Qualify property names
[chef.git] / cookbooks / systemd / resources / tmpfile.rb
index 91ede2c149c6fd1371bc0ebdf7bf7a188a48fe10..070a9cc8db3a7496c3fc30cd87eca74f263489cb 100644 (file)
@@ -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