Change order in gets Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/33728b26 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/33728b26 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/33728b26 Branch: refs/heads/trunk Commit: 33728b26d4937ba9bd4336ead1ea8d077a0af660 Parents: 8b19d31 Author: micafer Authored: Wed Nov 28 12:10:50 2018 +0100 Committer: Rick van de Loo Committed: Tue Dec 4 09:45:48 2018 +0100 ---------------------------------------------------------------------- libcloud/compute/drivers/openstack.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/33728b26/libcloud/compute/drivers/openstack.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py index da17e6c..f244f91 100644 --- a/libcloud/compute/drivers/openstack.py +++ b/libcloud/compute/drivers/openstack.py @@ -2220,14 +2220,13 @@ class OpenStack_1_1_NodeDriver(OpenStackNodeDriver): return StorageVolume( id=api_node['id'], - name=api_node.get('name', api_node.get('displayName')), + name=api_node.get('displayName', api_node.get('name')), size=api_node['size'], state=state, driver=self, extra={ - 'description': api_node.get('description', - api_node.get('displayDescription') - ), + 'description': api_node.get('displayDescription', + api_node.get('description')), 'attachments': [att for att in api_node['attachments'] if att], # TODO: remove in 1.18.0 'state': api_node.get('status', None),