updated status

This commit is contained in:
root 2015-11-30 15:29:26 +01:00
parent 08dbed78be
commit a8c56a009f
2 changed files with 3 additions and 3 deletions

View File

@ -154,8 +154,8 @@ UPDATE_ALLOWED_STATES = (DEPLOYFAIL, INSPECTING, INSPECTFAIL, CLEANFAIL)
"""Transitional states in which we allow updating a node."""
### NEW
CONNECTED = 'connected'
DISCONNECTED = 'disconnected'
OPERATIVE = 'operative'
MAINTENANCE = 'maintenance'
##############
# Power states

View File

@ -270,7 +270,7 @@ class Connection(api.Connection):
if 'uuid' not in values:
values['uuid'] = uuidutils.generate_uuid()
if 'status' not in values:
values['status'] = states.DISCONNECTED
values['status'] = states.OPERATIVE
node = models.Node()
node.update(values)