forked from shaba/openuds
Fixes for providers
This commit is contained in:
parent
6038f93189
commit
dc381565cf
@ -121,8 +121,7 @@ class OVirtLinkedDeployment(services.UserDeployment):
|
||||
self._mac = vals[3].decode('utf8')
|
||||
self._vmid = vals[4].decode('utf8')
|
||||
self._reason = vals[5].decode('utf8')
|
||||
queue = pickle.loads(vals[6])
|
||||
self._queue = pickle.loads(queue)
|
||||
self._queue = pickle.loads(vals[6])
|
||||
|
||||
def getName(self) -> str:
|
||||
if self._name == '':
|
||||
@ -527,7 +526,7 @@ if sys.platform == 'win32':
|
||||
}
|
||||
|
||||
try:
|
||||
chkFnc: typing.Optional[typing.Optional[typing.Callable[[], str]]] = fncs.get(op, None)
|
||||
chkFnc: typing.Optional[typing.Optional[typing.Callable[[], str]]] = fncs.get(op, None)
|
||||
|
||||
if chkFnc is None:
|
||||
return self.__error('Unknown operation found at check queue ({0})'.format(op))
|
||||
|
@ -87,12 +87,10 @@ class IPMachinesService(IPServiceBase):
|
||||
return {'ipList': gui.convertToList(ips)}
|
||||
|
||||
def marshal(self) -> bytes:
|
||||
logger.debug('Marshal: %s', self._ips)
|
||||
self.storage.saveData('ips', pickle.dumps(self._ips))
|
||||
return b'v1'
|
||||
|
||||
def unmarshal(self, data: bytes) -> None:
|
||||
logger.debug('Vals %s', data)
|
||||
if data == b'v1':
|
||||
d = self.storage.readData('ips')
|
||||
if isinstance(d, bytes):
|
||||
@ -103,8 +101,6 @@ class IPMachinesService(IPServiceBase):
|
||||
else:
|
||||
self._ips = []
|
||||
|
||||
logger.debug('Unmarshal: %s', self._ips)
|
||||
|
||||
def getUnassignedMachine(self) -> typing.Optional[str]:
|
||||
# Search first unassigned machine
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user