1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

Now machines does not locks forever....

This commit is contained in:
Adolfo Gómez García 2021-03-01 13:08:31 +01:00
parent 5f30e083b1
commit 8af6cc008b

View File

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