Fix exception raise on failed attach

Stop referencing attribute "connection_information" from a Connection's
OVO object when failing to attach a volume, since that attribute doesn't
exist.  Use connection_info instead.
This commit is contained in:
Gorka Eguileor 2019-02-13 19:52:25 +01:00
parent 5817b957e9
commit 7dfc3c2ae6
2 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,13 @@
History
=======
0.3.8 (2019-02-XY)
------------------
- Bug fixes:
- Fix exception raising on failed attach
0.3.7 (2019-02-05)
------------------

View File

@ -788,7 +788,7 @@ class Connection(Object, LazyVolumeAttr):
if error_msg:
self.detach(force=True, ignore_errors=True)
raise cinder_exception.DeviceUnavailable(
path=self.path, attach_info=self._ovo.connection_information,
path=self.path, attach_info=self._ovo.connection_info,
reason=error_msg)
if self._volume:
self.volume.local_attach = self