diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-08-22 10:01:13 -0400 |
|---|---|---|
| committer | Dan Prince <dan.prince@rackspace.com> | 2011-08-22 10:01:13 -0400 |
| commit | 44aea954e5efa7d94d8333ddbf54dab6464018a0 (patch) | |
| tree | 192edeb95400c568eb1ae166f346f8041be070df /nova/api | |
| parent | f82d2d309a0f826522854fe331d1c53b8c6d6879 (diff) | |
| download | nova-44aea954e5efa7d94d8333ddbf54dab6464018a0.tar.gz nova-44aea954e5efa7d94d8333ddbf54dab6464018a0.tar.xz nova-44aea954e5efa7d94d8333ddbf54dab6464018a0.zip | |
Renamed task_state to task_states...
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/api/openstack/common.py b/nova/api/openstack/common.py index eae0fd916..778c1e514 100644 --- a/nova/api/openstack/common.py +++ b/nova/api/openstack/common.py @@ -28,7 +28,7 @@ from nova import log as logging from nova import quota from nova.api.openstack import wsgi from nova.compute import vm_states -from nova.compute import task_state +from nova.compute import task_states LOG = logging.getLogger('nova.api.openstack.common') @@ -56,9 +56,9 @@ _STATE_MAP = { } -def status_from_state(_vm_state, _task_state=None): +def status_from_state(_vm_state, task_state=None): """Given vm_state and task_state, return a status string.""" - if _vm_state == vm_states.ACTIVE and _task_state == task_state.PASSWORD: + if _vm_state == vm_states.ACTIVE and task_state == task_states.PASSWORD: return "PASSWORD" return _STATE_MAP.get(_vm_state, "UNKNOWN_STATE") |
