From: Tom Hughes Date: Thu, 13 Feb 2020 19:16:10 +0000 (+0000) Subject: Fix some cookstyle warnings X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/18b7b58050667876d0456cbdd3835fdd96de0bc8 Fix some cookstyle warnings --- diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 6031ef508..013037959 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -215,10 +215,10 @@ template "/etc/systemd/resolved.conf.d/99-chef.conf" do notifies :restart, "service[systemd-resolved]", :immediately end -if node[:filesystem][:by_mountpoint]["/etc/resolv.conf"] +if node[:filesystem][:by_mountpoint][:"/etc/resolv.conf"] mount "/etc/resolv.conf" do action :umount - device node[:filesystem][:by_mountpoint]["/etc/resolv.conf"][:devices].first + device node[:filesystem][:by_mountpoint][:"/etc/resolv.conf"][:devices].first end end