From f463f586a3efe88a8e9a640a631d985104f6310f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 25 Nov 2015 17:14:02 +0100 Subject: [PATCH] Added 'in use' to true to Phisical Machines as soon as they are assigned, so they kept the assignation forever --- server/src/uds/services/PhysicalMachines/IPMachineDeployed.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/uds/services/PhysicalMachines/IPMachineDeployed.py b/server/src/uds/services/PhysicalMachines/IPMachineDeployed.py index 9320a27ac..a8f96d87b 100644 --- a/server/src/uds/services/PhysicalMachines/IPMachineDeployed.py +++ b/server/src/uds/services/PhysicalMachines/IPMachineDeployed.py @@ -72,6 +72,8 @@ class IPMachineDeployed(AutoAttributes, services.UserDeployment): else: self._ip = ip self._state = State.FINISHED + self.dbservice().setInUse(True) + self.dbservice().save() return self._state def deployForUser(self, user):