Zone list all projects fails in interactive OSC prompt after previous identical command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-designateclient |
Fix Released
|
High
|
Joseph M |
Bug Description
Designate client version: master
The "zone list --all-projects" command has an issue when run twice from an interactive (openstack) prompt:
$ OS_CLOUD=admin OS_REGION_NAME=lax1 openstack
(openstack) zone list --all-projects
+------
| id | project_id | name | type | serial | status | action |
+------
| a064f09f-
| df9c81e5-
| eedc6039-
+------
(openstack) zone list --all-projects
Field names must be unique!
This is caused by the following line trying to add a new column to the result without checking if the column already exists:
This data is then passed to prettytables which then errors because the field names aren't unique:
Traceback (most recent call last):
File "/opt/openstack
result = cmd.run(
File "/opt/openstack
return super(Command, self).run(
File "/opt/openstack
self.
File "/opt/openstack
parsed_args,
File "/opt/openstack
print_
File "/opt/openstack
self.
File "/opt/openstack
self.
File "/opt/openstack
self.
File "/opt/openstack
raise Exception("Field names must be unique!")
Exception: Field names must be unique!
clean_up ListZonesCommand: Field names must be unique!
Changed in python-designateclient: | |
importance: | Undecided → High |
Fix proposed to branch: master /review. opendev. org/682234
Review: https:/