]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Huawei: Code cleanup
authorWilson Liu <liuxinguo@huawei.com>
Mon, 22 Feb 2016 02:50:12 +0000 (10:50 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Sat, 27 Feb 2016 01:41:06 +0000 (09:41 +0800)
commitac2fd5b82c86059267f3e2f9dd97c8000926673b
tree9b741be22642cc558c0782808ba9643c07c0819a
parent63cc4a2b773aeb401d42f0300a26097d32c3f345
Huawei: Code cleanup

Some codes are useless, we need to clean them up:
1. add_host_with_check have been called at line 1653
   to get host_id in huawei_driver.py, the another
   two are no longer need.
2. Remove duplicated codes in test_huawei_drivers.py,
   also change FACK_XXX to FAKE_XXX.
3. Two constants in constants.py are not used anywhere,
   need to delete them.

Closes-Bug: #1548158
Change-Id: I03d49e9194223dbea162be4239fa339ab0a0ff4b
cinder/tests/unit/test_huawei_drivers.py
cinder/volume/drivers/huawei/constants.py
cinder/volume/drivers/huawei/huawei_driver.py
cinder/volume/drivers/huawei/hypermetro.py