diff --git a/server/src/uds/REST/methods/actor_v3.py b/server/src/uds/REST/methods/actor_v3.py index 59099281a..881ef35fa 100644 --- a/server/src/uds/REST/methods/actor_v3.py +++ b/server/src/uds/REST/methods/actor_v3.py @@ -284,14 +284,7 @@ class Initialize(ActorV3Action): state__in=[State.USABLE, State.PREPARING], ) - userService: UserService = next( - iter( - dbFilter.filter( - unique_id__in=idsList, - state__in=[State.USABLE, State.PREPARING], - ) - ) - ) + userService: UserService = next(iter(dbFilter)) except Exception as e: logger.info('Unmanaged host request: %s, %s', self._params, e) return ActorV3Action.actorResult( diff --git a/server/src/uds/services/Proxmox/service.py b/server/src/uds/services/Proxmox/service.py index a95169a99..a952ede90 100644 --- a/server/src/uds/services/Proxmox/service.py +++ b/server/src/uds/services/Proxmox/service.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2012-2019 Virtual Cable S.L. +# Copyright (c) 2012-2022 Virtual Cable S.L.U. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, @@ -10,7 +10,7 @@ # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. -# * Neither the name of Virtual Cable S.L. nor the names of its contributors +# * Neither the name of Virtual Cable S.L.U. nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # @@ -256,7 +256,7 @@ class ProxmoxLinkedService(Service): # pylint: disable=too-many-public-methods def getMac(self, vmId: int) -> str: config = self.parent().getMachineConfiguration(vmId) - return config.networks[0].mac + return config.networks[0].mac.lower() def getTaskInfo(self, node: str, upid: str) -> 'client.types.TaskStatus': return self.parent().getTaskInfo(node, upid)