Fix task states of nova-baremetal nodes
* Adds task states "building", "deploying", "prepared" Change-Id: Id158a78a6e18b459c952d74ddd7d7e11f95c3303 Closes-Bug: #1288208
This commit is contained in:
parent
73d72ebd0e
commit
0b5abbde98
|
@ -688,7 +688,10 @@ class Node(base.APIResourceWrapper):
|
|||
task_state = self._apiresource.task_state
|
||||
task_state_dict = {
|
||||
'active': 'on',
|
||||
'reboot': 'rebooting'
|
||||
'reboot': 'rebooting',
|
||||
'building': 'building',
|
||||
'deploying': 'deploying',
|
||||
'prepared': 'prepared',
|
||||
}
|
||||
return task_state_dict.get(task_state, 'off')
|
||||
|
||||
|
|
Loading…
Reference in New Issue