Fixing LDAP bool variable convertion for secret population 45/11245/1
authorsousaedu <eduardo.sousa@canonical.com>
Fri, 8 Oct 2021 05:52:29 +0000 (06:52 +0100)
committersousaedu <eduardo.sousa@canonical.com>
Fri, 8 Oct 2021 05:52:29 +0000 (06:52 +0100)
Change-Id: I222213dbf0b738e9e54916e3568baa9fb5738e16
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
installers/charm/keystone/src/charm.py

index cb5c88c..39a7a00 100755 (executable)
@@ -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"