Commit 70687a67 authored by Frederik Enste's avatar Frederik Enste
Browse files

Merge branch 'fix-group-sync' into 'master'

Fixed group sync

Closes #2

See merge request !2
parents 2cd63104 0e8ef9f7
Pipeline #110 passed with stage
......@@ -234,6 +234,8 @@ def sync_update_user(proxmox: ProxmoxAPI, user: dict, reference: dict):
for group in user_groups:
if group in reference_groups:
new_groups.insert(reference_groups.index(group), group)
for group in reference_groups:
if group not in proxmox_ldap_managed_groups:
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