Verified Commit 0e8ef9f7 authored by Frederik Enste's avatar Frederik Enste
Browse files

#2 fixed group sync

parent 2cd63104
Pipeline #108 passed with stage
...@@ -234,6 +234,8 @@ def sync_update_user(proxmox: ProxmoxAPI, user: dict, reference: dict): ...@@ -234,6 +234,8 @@ def sync_update_user(proxmox: ProxmoxAPI, user: dict, reference: dict):
for group in user_groups: for group in user_groups:
if group in reference_groups: if group in reference_groups:
new_groups.insert(reference_groups.index(group), group) new_groups.insert(reference_groups.index(group), group)
else:
new_groups.append(group)
for group in reference_groups: for group in reference_groups:
if group not in proxmox_ldap_managed_groups: if group not in proxmox_ldap_managed_groups:
new_groups.insert(reference_groups.index(group), group) new_groups.insert(reference_groups.index(group), group)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment