X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1a5e1536826b860f179c7a2ebc143565970622e7..b1b9d1a24cd4ec5bc9176af4342697a739db64e7:/cookbooks/networking/recipes/default.rb?ds=inline 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