fix(realm): when updating realms, don't send the type
This commit was merged in pull request #2.
	This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user