Merge "Fix task states of nova-baremetal nodes"

This commit is contained in:
Jenkins 2014-03-11 07:18:35 +00:00 committed by Gerrit Code Review
commit dda4d81969
1 changed files with 4 additions and 1 deletions

View File

@ -737,7 +737,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')