diff options
| author | Naveed Massjouni <naveedm9@gmail.com> | 2011-02-16 19:12:44 -0500 |
|---|---|---|
| committer | Naveed Massjouni <naveedm9@gmail.com> | 2011-02-16 19:12:44 -0500 |
| commit | ce847afcc1e24463d7aa522f227a08193c72fcc0 (patch) | |
| tree | 5b377e488e212b6049dd5a1508dda70abd16fc1c /nova/api | |
| parent | 163e81ac2bc2f9945273b0659ceb473767e5b19f (diff) | |
Moved definition of return_servers_with_host stub to inside the
test_get_all_server_details_with_host test.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/servers.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index 58eda53b9..323e6fda6 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -67,10 +67,9 @@ def _translate_detail_keys(inst): inst_dict['addresses'] = dict(public=[], private=[]) inst_dict['metadata'] = {} + inst_dict['hostId'] = '' if inst['host']: inst_dict['hostId'] = hashlib.sha224(inst['host']).hexdigest() - else: - inst_dict['hostId'] = '' return dict(server=inst_dict) |
