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:
parent
5817b957e9
commit
7dfc3c2ae6
|
@ -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)
|
||||
------------------
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue