Skip to content

Commit

Permalink
Merge pull request #582 from NethServer/dev6855
Browse files Browse the repository at this point in the history
Fix issue with missing 'ui_names' in cluster restore NethServer/dev#6855
  • Loading branch information
stephdl authored Feb 22, 2024
2 parents c8b5d7a + bb861e3 commit 8253c53
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ del(dump['cluster']['favorites'])
for d in dump['cluster']['user_domain']['ldap'].keys():
domain = dump['cluster']['user_domain']['ldap'][d]
rdb.hset(f'cluster/user_domain/ldap/{d}/conf', mapping=domain['conf'])
rdb.hset(f'cluster/user_domain/ldap/{d}/ui_names', mapping=domain['ui_names'])
if 'ui_names' in domain:
rdb.hset(f'cluster/user_domain/ldap/{d}/ui_names', mapping=domain['ui_names'])
for p in domain['providers']:
r = rdb.lpush(f'cluster/user_domain/ldap/{d}/providers', p)

Expand Down

0 comments on commit 8253c53

Please sign in to comment.