commit | 9ba5a1e0f0eb741ebd6708a6be71dd80bb05de26 | [log] [tgz] |
---|---|---|
author | zhufl <zhu.fanglei@zte.com.cn> | Wed Oct 12 15:22:46 2016 +0800 |
committer | zhufl <zhu.fanglei@zte.com.cn> | Wed Oct 12 15:22:46 2016 +0800 |
tree | fa4702787687fdccdfebcb512d1d00a67a0aded9 | |
parent | 51ca7b882f1092925d22bf7da4aad0eb5f50f77c [diff] |
Correct 'list index out of range' in FloatingIPDetailsTestJSON In FloatingIPDetailsTestJSON's resource_setup, 3 floating_ips are created and appended to cls.floating_ip, but if create_floating_ip failes, cls.floating_ip will be an empty list, so in resource_cleanup we should not use 'range(3)', but should iterate each item in cls.floating_ip. Closes-Bug: #1632581 Change-Id: I24979f27305c75474825f8ecef2ed56b7171158e