commit e704e834024cf4ec156527b16f7437f9dba4d551
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: I5d8f63f9a78d001bc699af538f586aab8d73a5cf
Closes-bug: #1759175
(cherry picked from commit c816be897e7ab1c95b38979b2cc94ecf179e44e7)
(cherry picked from commit febe57cfee50425c0fc9945169b5f9c3898cbdfe)
(cherry picked from commit ead818199e07923760e525c0367c9dcb5f4ab343)
Reviewed: https:/ /review. openstack. org/625855 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=e704e834024 cf4ec156527b16f 7437f9dba4d551
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit e704e834024cf4e c156527b16f7437 f9dba4d551
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 95b38979b2cc94e cf179e44e7) c0fc9945169b5f9 c3898cbdfe) 760e525c0367c9d cb5f4ab343)
Closes-bug: #1759175
(cherry picked from commit c816be897e7ab1c
(cherry picked from commit febe57cfee50425
(cherry picked from commit ead818199e07923