From a1253b0f53c76365bf950d8b89f0fc7d17338242 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 21 Mar 2022 09:19:39 +0000 Subject: [PATCH] Avoid template expansion errors --- cookbooks/mysql/templates/default/apparmor.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/mysql/templates/default/apparmor.erb b/cookbooks/mysql/templates/default/apparmor.erb index 1a0f6574b..9239e880a 100644 --- a/cookbooks/mysql/templates/default/apparmor.erb +++ b/cookbooks/mysql/templates/default/apparmor.erb @@ -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 -%> -- 2.39.5