shade/releasenotes/notes/change-attach-vol-return-value-4834a1f78392abb1.yaml
Jordan Pittier d809981e5b attach_volume should always return a vol attachment.
attach_volume method has inconsistent return value: if we pass it
wait=True, the methods returns a volume object but if we pass it
wait=False it returns a volume_attachment object.

We should always return a volume_attachment object.

Also don't try to be too clever in pre-emptively refusing to detach
a volume that we think is not attached. It prevents the following
calls, which looks good without knowing Shade internals:
server = create_server(...); volume = create_volume(...);
attach_volume(server, volume); detach_volume(server, volume)

Change-Id: Ia1da29ec6286dbbed0a77d6abcf89e95a055ac9a
2017-03-21 20:01:35 +01:00

9 lines
261 B
YAML

---
upgrade:
- |
The ``attach_volume`` method now always returns a ``volume_attachment``
object. Previously, ``attach_volume`` would return a ``volume`` object if
it was called with ``wait=True`` and a ``volume_attachment`` object
otherwise.