commit | 8a6f9c339179f6f3fe9da75ff1f7b05154315fee | [log] [tgz] |
---|---|---|
author | zhufl <zhu.fanglei@zte.com.cn> | Thu Dec 01 17:13:44 2016 +0800 |
committer | zhufl <zhu.fanglei@zte.com.cn> | Thu Dec 01 17:13:44 2016 +0800 |
tree | abfec780f133514c862b85b0fa25eb99f0f0be34 | |
parent | 742c7ee2ef901f7ba2d2310414d71044cc935ba6 [diff] |
Remove unnessary assertIsNotNone If volume['id'] is None, wait_for_volume_status will fail, so there is no need to check whether volume['id'] is None after wait_for_volume_status. Besides, name_field and descrip_field are only used in one function, so it is no need to define them in resource_setup as instance variables. Change-Id: I2606509b2e373c37f6bdb5c3e78d84d0131ccf0b