Fix some cookstyle warnings
authorTom Hughes <tom@compton.nu>
Thu, 13 Feb 2020 19:16:10 +0000 (19:16 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 13 Feb 2020 19:16:10 +0000 (19:16 +0000)
cookbooks/networking/recipes/default.rb

index 6031ef508f6ed1a842bebe0e9782580bfe742493..013037959c449abc7baed6b7817d05da117ba852 100644 (file)
@@ -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