From 158ca8096d07afa5143031b917c6369d8fb3a6a1 Mon Sep 17 00:00:00 2001 From: sousaedu Date: Fri, 8 Oct 2021 06:52:29 +0100 Subject: [PATCH] Fixing LDAP bool variable convertion for secret population Change-Id: I222213dbf0b738e9e54916e3568baa9fb5738e16 Signed-off-by: sousaedu --- installers/charm/keystone/src/charm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installers/charm/keystone/src/charm.py b/installers/charm/keystone/src/charm.py index cb5c88c5..39a7a007 100755 --- a/installers/charm/keystone/src/charm.py +++ b/installers/charm/keystone/src/charm.py @@ -379,7 +379,7 @@ class KeystoneCharm(CharmedOsmBase): "user_pass_attribute": config_ldap.ldap_user_pass_attribute, "user_enabled_mask": str(config_ldap.ldap_user_enabled_mask), "user_enabled_default": config_ldap.ldap_user_enabled_default, - "user_enabled_invert": config_ldap.ldap_user_enabled_invert, + "user_enabled_invert": str(config_ldap.ldap_user_enabled_invert), "group_objectclass": config_ldap.ldap_group_objectclass, } ldap_envs = { @@ -429,7 +429,7 @@ class KeystoneCharm(CharmedOsmBase): ldap_envs["LDAP_TLS_CACERT_BASE64"] = "tls_cacert_base64" if config_ldap.ldap_use_starttls: - ldap_secrets["use_starttls"] = config_ldap.ldap_use_starttls + ldap_secrets["use_starttls"] = str(config_ldap.ldap_use_starttls) ldap_secrets["tls_cacert_base64"] = config_ldap.ldap_tls_cacert_base64 ldap_secrets["tls_req_cert"] = config_ldap.ldap_tls_req_cert ldap_envs["LDAP_USE_STARTTLS"] = "use_starttls" -- 2.25.1