nova/nova/volume
Ildiko Vancsa 74a72ecef0 Translate the return value of attachment_create and _update
The return value from attachment create and update contains the
connection_info without the 'data' sub-dictionary in it, which
is a non-backwards-compatible change.

This patch adds a translation helper method to volume/cinder.py
to build the connection_info dict back to be a nested dict with
the 'data' key in it.

We will switch to the version without the 'data' key at a later
time with the aim of removing complexity.

The test_swap_volume_with_new_attachment_id_driver_swap_fails
test is updated a bit to validate the attachment_update return
value is used properly.

Change-Id: I8924da50867c1447cf6e441c85393429d21ef74a
2017-07-25 21:16:03 -04:00
..
__init__.py Remove deprecated config option volume_api_class 2016-07-21 23:08:08 +08:00
cinder.py Translate the return value of attachment_create and _update 2017-07-25 21:16:03 -04:00