1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-21 10:50:26 +03:00

Fixed Proxmox fixed service

This commit is contained in:
Adolfo Gómez García 2024-10-02 18:01:58 +02:00
parent 752ae78ce7
commit 4a68ebfb6d
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 2 additions and 2 deletions
server/src/uds
core/services/generics/fixed
services/Proxmox

@ -244,7 +244,7 @@ class FixedUserService(services.UserService, autoserializable.AutoSerializable,
except exceptions.NotFoundError:
self.do_log(types.log.LogLevel.ERROR, f'Machine not found: {self._vmid}::{self._name}')
except Exception:
except Exception: # No ip already assigned, wait...
pass
return ''

@ -119,7 +119,7 @@ class ProxmoxServiceFixed(FixedService): # pylint: disable=too-many-public-meth
return self.provider().is_available()
def get_vm_info(self, vmid: int) -> 'prox_types.VMInfo':
return self.provider().api.get_vm_info(vmid, self.pool.value.strip()).validate()
return self.provider().api.get_vm_info(vmid).validate()
def is_ready(self, vmid: str) -> bool:
return self.provider().api.get_vm_info(int(vmid)).validate().status.is_running()