commit c816be897e7ab1c95b38979b2cc94ecf179e44e7
Author: Ryan Liang <email address hidden>
Date: Wed Mar 28 07:30:39 2018 +0000
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`.
Reviewed: https:/ /review. openstack. org/556803 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=c816be897e7 ab1c95b38979b2c c94ecf179e44e7
Committed: https:/
Submitter: Zuul
Branch: master
commit c816be897e7ab1c 95b38979b2cc94e cf179e44e7
Author: Ryan Liang <email address hidden>
Date: Wed Mar 28 07:30:39 2018 +0000
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: I5d8f63f9a78d00 1bc699af538f586 aab8d73a5cf
Closes-bug: #1759175