From: sousaedu Date: Fri, 8 Oct 2021 05:52:29 +0000 (+0100) Subject: Fixing LDAP bool variable convertion for secret population X-Git-Tag: release-v11.0-start~6 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=158ca8096d07afa5143031b917c6369d8fb3a6a1;p=osm%2Fdevops.git Fixing LDAP bool variable convertion for secret population Change-Id: I222213dbf0b738e9e54916e3568baa9fb5738e16 Signed-off-by: sousaedu --- 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"