]> git.openstreetmap.org Git - chef.git/commitdiff
Avoid template expansion errors
authorTom Hughes <tom@compton.nu>
Mon, 21 Mar 2022 09:19:39 +0000 (09:19 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 21 Mar 2022 09:20:24 +0000 (09:20 +0000)
cookbooks/mysql/templates/default/apparmor.erb

index 1a0f6574bdce7620f8a89d75bede6ae14331324f..9239e880a6b55d8aff82d1581673ea826ff600ab 100644 (file)
@@ -1,4 +1,4 @@
 # DO NOT EDIT - This file is being maintained by Chef
-<% if node[:mysql][:settings][:mysqld][:secure_file_priv] -%>
+<% if node[:mysql][:settings][:mysqld]&.dig(:secure_file_priv) -%>
 <%= node[:mysql][:settings][:mysqld][:secure_file_priv] %>/* rw,
 <% end -%>