feat(realm_sync): add plugin for triggering realm synchronizations
This commit is contained in:
@ -53,3 +53,8 @@ def set_realm_data(auth_info: ProxmoxAuthInfo, realm: str, config: dict[str, str
|
||||
new_realm_data = None
|
||||
return existing_realm_data, new_realm_data
|
||||
|
||||
|
||||
def do_realm_sync(auth_info: ProxmoxAuthInfo, realm: str, config: dict[str, str], dry_run: bool):
|
||||
sync_config = config | {"dry-run": dry_run}
|
||||
realm_sync = _proxmox_request('post', f"/access/domains/{realm}/sync", auth_info, data=sync_config)
|
||||
return realm_sync.ok
|
||||
|
Reference in New Issue
Block a user