From 9d86ff163a1865803773d989da7e65298f62bed8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 12 Sep 2018 19:43:24 +0100 Subject: [PATCH] Qualify property access --- cookbooks/systemd/resources/service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/systemd/resources/service.rb b/cookbooks/systemd/resources/service.rb index c31b6d0bc..772999f1d 100644 --- a/cookbooks/systemd/resources/service.rb +++ b/cookbooks/systemd/resources/service.rb @@ -97,7 +97,7 @@ end action :delete do file "/etc/default/#{new_resource.service}" do action :delete - only_if { environment_file.is_a?(Hash) } + only_if { new_resource.environment_file.is_a?(Hash) } end file "/etc/systemd/system/#{new_resource.service}.service" do -- 2.39.5