Add more plugins for proxmox #2
@ -28,7 +28,9 @@ def set_realm_data(auth_info: ProxmoxAuthInfo, realm: str, config: dict[str, str
|
||||
if existing_realm.ok:
|
||||
existing_realm_data = existing_realm.json()['data']
|
||||
if not dry_run:
|
||||
realm_res = _proxmox_request('put', f"/access/domains/{realm}", auth_info, data=config)
|
||||
put_args_denylist = ['type']
|
||||
put_config = {k: v for k, v in config.items() if k not in put_args_denylist}
|
||||
realm_res = _proxmox_request('put', f"/access/domains/{realm}", auth_info, data=put_config)
|
||||
realm_res.raise_for_status()
|
||||
else:
|
||||
if not dry_run:
|
||||
|
Loading…
Reference in New Issue
Block a user