summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorMate Lakat <mate.lakat@citrix.com>2012-10-18 15:56:47 +0100
committerMate Lakat <mate.lakat@citrix.com>2012-10-23 09:43:02 +0100
commit1dfdfcef3c3c222f6266132c51db5464dd6ddf8d (patch)
treeecf5d1203e6537ca69235a590d0162019ed17812 /nova/openstack
parenta0fcd1248071ad66b610eac4903adf36b314390b (diff)
downloadnova-1dfdfcef3c3c222f6266132c51db5464dd6ddf8d.tar.gz
nova-1dfdfcef3c3c222f6266132c51db5464dd6ddf8d.tar.xz
nova-1dfdfcef3c3c222f6266132c51db5464dd6ddf8d.zip
limit the usage of connection_info
Related to blueprint xenapi-volume-drivers The connection_info parameter, that is coming from volume contains only two keys, 'driver_volume_type', and 'data'. See: https://github.com/openstack/nova/blob/master/nova/volume/manager.py#L375 parse_volume_info was checking the connection_info for 'auth_method', and authentication parameters. These informations live inside connection_data. This patch is fixing this, and covering with a test. Also rename the generic data variable to connection_data, to make it easier to read the code. parse_volume_info thus no longer depends on the whole connection_info, only on the connection_data. Also clean-up some copy-paste test setup code. Change-Id: I5289120d46176c8528c3317a650269c4f384f930
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions