]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/recipes/default.rb
Fix some cookstyle warnings
[chef.git] / 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