1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +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:
self._ip = ip
self._state = State.FINISHED
self.dbservice().setInUse(True)
self.dbservice().save()
return self._state
def deployForUser(self, user):