]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Huawei: Check before delete host
authorWilson Liu <liuxinguo@huawei.com>
Mon, 22 Feb 2016 05:03:26 +0000 (13:03 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Wed, 9 Mar 2016 14:19:06 +0000 (22:19 +0800)
commita8c7efd0c6df604e37f7003917beee06f481c03b
treed78d265308faa5dc430cbc66a11b0f064f0100f7
parent08b74ce3280f66613e9cae8bce3d00c20d38aff2
Huawei: Check before delete host

Currently we delete the host without checking
whether the host already belongs to a host
group. If a host already belongs to a hostgroup,
an error will occur. So we should do the check
before delete it.

Closed-Bug: #1548183
Change-Id: Ibfa0bb4930e6d932c332aacb19ae81f9daad55ce
cinder/tests/unit/test_huawei_drivers.py
cinder/volume/drivers/huawei/huawei_driver.py
cinder/volume/drivers/huawei/rest_client.py