1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-10 01:17:59 +03:00

Added 'in use' to true to Phisical Machines as soon as they are assigned, so they kept the assignation forever

This commit is contained in:
Adolfo Gómez García 2015-11-25 17:14:02 +01:00
parent 6fe734f67e
commit f463f586a3

View File

@ -72,6 +72,8 @@ class IPMachineDeployed(AutoAttributes, services.UserDeployment):
else: else:
self._ip = ip self._ip = ip
self._state = State.FINISHED self._state = State.FINISHED
self.dbservice().setInUse(True)
self.dbservice().save()
return self._state return self._state
def deployForUser(self, user): def deployForUser(self, user):