diff options
author | Ana Krivokapic <akrivoka@redhat.com> | 2014-04-07 16:59:53 +0200 |
---|---|---|
committer | Ana Krivokapic <akrivoka@redhat.com> | 2014-04-09 12:01:18 +0200 |
commit | 680015e06c85d83e737a40a64c325dd6dc02f7bc (patch) | |
tree | 1d38ddc32b93f82e4eb6409e452757422cc91576 | |
parent | 0f0ea0996bb5a23eb05487baa345f780441456ac (diff) | |
download | tuskar-ui-680015e06c85d83e737a40a64c325dd6dc02f7bc.tar.gz |
Update dict of power states
Change-Id: I366f0aeef794b6a55dcd2330baf8c6bf90e44bb1
-rw-r--r-- | tuskar_ui/api.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tuskar_ui/api.py b/tuskar_ui/api.py index 11dcfbb1..720f06a3 100644 --- a/tuskar_ui/api.py +++ b/tuskar_ui/api.py @@ -866,12 +866,17 @@ class Node(base.APIResourceWrapper): """ task_state = self._apiresource.task_state task_state_dict = { + 'initializing': 'initializing', 'active': 'on', 'reboot': 'rebooting', 'building': 'building', 'deploying': 'deploying', 'prepared': 'prepared', 'deleting': 'deleting', + 'deploy failed': 'deploy failed', + 'deploy complete': 'deploy complete', + 'deleted': 'deleted', + 'error': 'error', } return task_state_dict.get(task_state, 'off') |