This commit is contained in:
Adolfo Gómez García 2019-02-24 11:47:50 +01:00
parent 2b653b8b05
commit b1f3407299
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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):