1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-08-15 01:50:03 +03:00

Added multiple ip service maxDeployed calc

This commit is contained in:
Adolfo Gómez García
2020-11-27 14:32:22 +01:00
parent 620e8fee94
commit b1c4385090

View File

@ -147,6 +147,9 @@ class IPMachinesService(IPServiceBase):
if values[0] == b'v4':
self._skipTimeOnFailure = int(values[3].decode())
# Sets maximum services for this
self.maxDeployed = len(self._ips)
def getUnassignedMachine(self) -> typing.Optional[str]:
# Search first unassigned machine
try: