Fixing LDAP variable convertion for secret population 40/11240/1
authorsousaedu <eduardo.sousa@canonical.com>
Thu, 7 Oct 2021 13:18:51 +0000 (14:18 +0100)
committersousaedu <eduardo.sousa@canonical.com>
Thu, 7 Oct 2021 13:18:51 +0000 (14:18 +0100)
Change-Id: Ifd3371a6e456d4dd56df4f40b75e0bc441418617
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
installers/charm/keystone/src/charm.py

index 4560ff5..cb5c88c 100755 (executable)
@@ -372,12 +372,12 @@ class KeystoneCharm(CharmedOsmBase):
             ldap_secrets = {
                 "authentication_domain_name": config_ldap.ldap_authentication_domain_name,
                 "url": config_ldap.ldap_url,
-                "page_size": config_ldap.ldap_page_size,
+                "page_size": str(config_ldap.ldap_page_size),
                 "user_objectclass": config_ldap.ldap_user_objectclass,
                 "user_id_attribute": config_ldap.ldap_user_id_attribute,
                 "user_name_attribute": config_ldap.ldap_user_name_attribute,
                 "user_pass_attribute": config_ldap.ldap_user_pass_attribute,
-                "user_enabled_mask": config_ldap.ldap_user_enabled_mask,
+                "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,
                 "group_objectclass": config_ldap.ldap_group_objectclass,