updated status
This commit is contained in:
parent
08dbed78be
commit
a8c56a009f
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue