forked from shaba/openuds
Fixes
This commit is contained in:
parent
2b653b8b05
commit
b1f3407299
@ -506,7 +506,7 @@ class UserServiceManager(object):
|
||||
elif uService.state in (State.USABLE, State.PREPARING): # We don't want to get active deleting or deleted machines...
|
||||
uService.setState(State.PREPARING)
|
||||
UserServiceOpChecker.makeUnique(uService, ui, state)
|
||||
uService.save(update_fields=['in_use', 'in_use_date', 'os_state', 'state', 'state_date', 'data'])
|
||||
uService.save(update_fields=['os_state'])
|
||||
except Exception as e:
|
||||
logger.exception('Unhandled exception on notyfyReady: {}'.format(e))
|
||||
uService.setState(State.ERROR)
|
||||
|
@ -212,7 +212,7 @@ class UserServiceOpChecker(DelayedTask):
|
||||
logger.exception('Checking service state')
|
||||
log.doLog(userService, log.ERROR, 'Exception: {0}'.format(e), log.INTERNAL)
|
||||
userService.setState(State.ERROR)
|
||||
userService.save(update_fields=['data', 'state', 'state_date'])
|
||||
userService.save(update_fields=['data'])
|
||||
|
||||
@staticmethod
|
||||
def checkLater(userService, ci):
|
||||
|
Loading…
Reference in New Issue
Block a user