fix(realm): when updating realms, don't send the type
This commit is contained in:
parent
e72d920b73
commit
c26f63fa53
@ -28,7 +28,9 @@ def set_realm_data(auth_info: ProxmoxAuthInfo, realm: str, config: dict[str, str
|
|||||||
if existing_realm.ok:
|
if existing_realm.ok:
|
||||||
existing_realm_data = existing_realm.json()['data']
|
existing_realm_data = existing_realm.json()['data']
|
||||||
if not dry_run:
|
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()
|
realm_res.raise_for_status()
|
||||||
else:
|
else:
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
|
Loading…
Reference in New Issue
Block a user