commit | f045a5297193e5b352635b807c197dae354629e1 | [log] [tgz] |
---|---|---|
author | zhufl <zhu.fanglei@zte.com.cn> | Fri Sep 20 17:03:31 2019 +0800 |
committer | zhufl <zhu.fanglei@zte.com.cn> | Fri Sep 20 17:03:31 2019 +0800 |
tree | a760216228bc01ec9c10f9f0a97dbe8bcf2d66df | |
parent | fa4796b999297947a141b4d0f0643050224d8d02 [diff] |
Add assertNotEmpty to avoid IndexError In VolumePoolsAdminTestsJSON, if no cinder pools is listed, we get "IndexError: list index out of range", so we should check whether cinder_pools is empty before using it. Change-Id: I55c163993b4956458b8658dae9d11b61171b8b55 Closes-Bug: #1844772