Add more plugins for proxmox #2

Merged
transcaffeine merged 8 commits from transcaffeine/more-plugins into main 2022-08-24 11:11:47 +00:00
Showing only changes of commit c26f63fa53 - Show all commits

View File

@ -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: