Empty set causing out of range error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cliff |
Fix Released
|
Undecided
|
Doug Hellmann |
Bug Description
Using cliff with openstack client when querying against an empty collection reports an error:
openstack --debug server list #no servers defined
list index out of range
Traceback (most recent call last):
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
self.
File "/usr/lib/
parsed_args,
File "/usr/lib/
stdout, x, int(parsed_
File "/usr/lib/
first_line = x.get_string(
IndexError: list index out of range
clean_up ListServer: list index out of range
Traceback (most recent call last):
File "/usr/lib/
ret_val = super(OpenStack
File "/usr/lib/
result = self.run_
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
self.
File "/usr/lib/
parsed_args,
File "/usr/lib/
stdout, x, int(parsed_
File "/usr/lib/
first_line = x.get_string(
IndexError: list index out of range
summary: |
- Empy set causing out of range error + Empty set causing out of range error |
The two lines above this are:
RESP: [200] date: Fri, 29 Jan 2016 20:53:07 GMT content-length: 15 content-type: application/json x-compute- request- id: req-19d89d5a- f071-471f- 9560-1f07d99414 6e
RESP BODY: {"servers": []}