Comment 8 for bug 1759175

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/pike)

Reviewed: https://review.openstack.org/558662
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=ead818199e07923760e525c0367c9dcb5f4ab343
Submitter: Zuul
Branch: stable/pike

commit ead818199e07923760e525c0367c9dcb5f4ab343
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)