forked from shaba/openuds
Now ensures setReady does not steals, on error, the machine to the user
This commit is contained in:
parent
1959051fe4
commit
b48bea14d2
@ -419,7 +419,12 @@ class UserServiceManager:
|
|||||||
|
|
||||||
logger.debug('Service %s is usable, checking it via setReady', userService)
|
logger.debug('Service %s is usable, checking it via setReady', userService)
|
||||||
userServiceInstance = userService.getInstance()
|
userServiceInstance = userService.getInstance()
|
||||||
|
try:
|
||||||
state = userServiceInstance.setReady()
|
state = userServiceInstance.setReady()
|
||||||
|
except Exception as e:
|
||||||
|
logger.warn('Could not check readyness of %s: %s', userService, e)
|
||||||
|
return False
|
||||||
|
|
||||||
logger.debug('State: %s', state)
|
logger.debug('State: %s', state)
|
||||||
|
|
||||||
if state == State.FINISHED:
|
if state == State.FINISHED:
|
||||||
|
Loading…
Reference in New Issue
Block a user