cinder/cinder/volume
Ryan Liang e704e83402 Unity: fail to detach lun when auto zone enabled
When the lun is the last one attached to the host and it is detached,
the attribute `host.host_luns` is None. Use `not` in if statement which
is pythonic in checking None and empty list of `host.host_luns`.

Change-Id: I5d8f63f9a78d001bc699af538f586aab8d73a5cf
Closes-bug: #1759175
(cherry picked from commit c816be897e)
(cherry picked from commit febe57cfee)
(cherry picked from commit ead818199e)
2019-01-16 15:53:00 +08:00
..
drivers Unity: fail to detach lun when auto zone enabled 2019-01-16 15:53:00 +08:00
flows Move disk space check to run when needed 2018-06-07 17:00:28 +02:00
targets LIO: Fix terminate_connection AttributeError 2017-05-22 16:03:19 +00:00
__init__.py Fix dynamic import of CONF.volume_api_class 2016-02-12 10:50:31 -06:00
api.py Disallow unmanaging encrypted volumes 2017-12-18 11:28:32 -05:00
configuration.py Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
driver.py Do proper cleanup if connect volume fails 2017-08-09 10:53:46 +02:00
driver_utils.py Give more fine grained access to DriverInitiatorData 2016-06-03 11:06:48 -07:00
group_types.py CG API changes for migrating CGs 2016-11-22 19:08:20 -05:00
manager.py Disallow unmanaging encrypted volumes 2017-12-18 11:28:32 -05:00
qos_specs.py Fix mistakes introduced with QoSSpecs object 2016-07-28 13:34:24 +02:00
rpcapi.py Merge "Add assert_min_rpc_version decorator" 2017-01-26 08:58:57 +00:00
throttling.py Fix volume throttling to Python 3 2015-10-02 07:01:03 +00:00
utils.py Enforce _usage_from_snapshot to fetch info from deleted volume 2017-03-09 18:49:54 +00:00
volume_types.py Short-circuit notifications when not enabled 2017-01-30 12:31:45 +01:00