From 18b7b58050667876d0456cbdd3835fdd96de0bc8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 13 Feb 2020 19:16:10 +0000 Subject: [PATCH] Fix some cookstyle warnings --- cookbooks/networking/recipes/default.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2