From ce1ae9ddef4dd05a294dc630bf81b264a4b5a703 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 29 Jun 2022 09:56:12 +0200 Subject: [PATCH] Fix missing "$" in the ENFORCE_SCOPE's variable name Because of the missing "$" before ENFORCE_SCOPE in the lib/neutron module, it was treated as an ENFORCE_SCOPE string instead of variable and Neutron was deployed always with old defaults and disabled scope enforcement. Change-Id: Ibe67fea634c5f7abb521c0369ff30dd5db84db8c --- lib/neutron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neutron b/lib/neutron index 1b78493919..2d77df699a 100644 --- a/lib/neutron +++ b/lib/neutron @@ -633,7 +633,7 @@ function configure_neutron { # configure_rbac_policies() - Configure Neutron to enforce new RBAC # policies and scopes if NEUTRON_ENFORCE_SCOPE == True function configure_rbac_policies { - if [[ "$NEUTRON_ENFORCE_SCOPE" == "True" || "ENFORCE_SCOPE" == "True" ]]; then + if [[ "$NEUTRON_ENFORCE_SCOPE" == "True" || "$ENFORCE_SCOPE" == "True" ]]; then iniset $NEUTRON_CONF oslo_policy enforce_new_defaults True iniset $NEUTRON_CONF oslo_policy enforce_scope True else