]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Change format of some judgments
authorzhangchao010 <zhangchao010@huawei.com>
Tue, 26 Mar 2013 14:10:19 +0000 (22:10 +0800)
committerzhangchao010 <zhangchao010@huawei.com>
Wed, 3 Apr 2013 08:21:30 +0000 (16:21 +0800)
commita3848ed80d7306833a87b1f7cfa3f89b58ab744a
treeed8677c8a7a69e0652644c052dd3efa568026d9f
parent8f9cb73b64bce3c9aaf993a450bbb2a92dc6fd66
Change format of some judgments

Because "not volume" will be True if volume id is 0.It can not
distinguish 0 from None.The same to some other judgments where
variable value may be 0.

This patch also does the following changes:
Deletes check storagepool in function _check_conf_file and adds
check default iscsi target IP in function initialize_connection.
Moves create host group from do_setup to initialize_connection.
Changes _get_login_info to be _update_login_info.

Fixes bug: 1160340
Change-Id: I0434b587d57c783f10d5724c4c66aea5df0b32e5
cinder/volume/drivers/huawei/huawei_iscsi.py