From 8af6cc008b946b7d5cf660aa1d306c4c613ace6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 1 Mar 2021 13:08:31 +0100 Subject: [PATCH] Now machines does not locks forever.... --- server/src/uds/services/PhysicalMachines/service_multi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/services/PhysicalMachines/service_multi.py b/server/src/uds/services/PhysicalMachines/service_multi.py index 0acc4e02..fe28ac16 100644 --- a/server/src/uds/services/PhysicalMachines/service_multi.py +++ b/server/src/uds/services/PhysicalMachines/service_multi.py @@ -109,8 +109,8 @@ class IPMachinesService(IPServiceBase): # dissapeared ones dissapeared = set(old_ips) - set(self._ips) with transaction.atomic(): - for old in dissapeared: - self.storage.remove(old.split('~')[0]) + for removable in dissapeared: + self.storage.remove(removable.split('~')[0]) self._token = self.token.value.strip() self._port = self.port.value