Fix task states of nova-baremetal nodes

* Adds task states "building", "deploying", "prepared"

Change-Id: Id158a78a6e18b459c952d74ddd7d7e11f95c3303
Closes-Bug: #1288208
This commit is contained in:
Rohan Kanade 2014-03-06 18:58:50 +01:00
parent 73d72ebd0e
commit 0b5abbde98
1 changed files with 4 additions and 1 deletions

View File

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