diff --git a/docker-jans-persistence-loader/scripts/upgrade.py b/docker-jans-persistence-loader/scripts/upgrade.py index 8f359b12f2a..86962ad4000 100644 --- a/docker-jans-persistence-loader/scripts/upgrade.py +++ b/docker-jans-persistence-loader/scripts/upgrade.py @@ -369,9 +369,7 @@ def update_scripts_entries(self): else: props = agama_entry.attrs["jansConfProperty"] - if self.backend.type != "couchbase": - # try converting to mapping - props = [json.loads(prop) for prop in props] + props = [json.loads(prop) for prop in props] # filter out unwanted properties new_props = [ @@ -380,8 +378,7 @@ def update_scripts_entries(self): ] if new_props != props: - if self.backend.type != "couchbase": - new_props = [json.dumps(prop) for prop in new_props] + new_props = [json.dumps(prop) for prop in new_props] if self.backend.type == "sql" and self.backend.client.dialect == "mysql": agama_entry.attrs["jansConfProperty"]["v"] = new_props