diff options
author | Joseph M <josephm@inmotionhosting.com> | 2019-09-14 23:32:58 -0400 |
---|---|---|
committer | Joseph M <josephm@inmotionhosting.com> | 2019-09-16 18:52:53 -0400 |
commit | 7cc5f8bb2a31524f612e484e0bd4ea4e024e7d2c (patch) | |
tree | d4449ebd8cbf2d26037d3e4ff3eecc1143f5470b /designateclient | |
parent | 093d8d7170cbf6ef8c7a7c0ff2a4dcd7ecd6361b (diff) | |
download | python-designateclient-7cc5f8bb2a31524f612e484e0bd4ea4e024e7d2c.tar.gz |
Fix "zone list --all-projects" in interactive OSC
The current zone list function does not check to see if project_id is
already a column to be output when adding it during an --all-projects
list. This causes a duplicate field name to be added which is then
passed to prettytables which subsequently throws an exception. Create a
copy of the columns list so it is not appended to with every
command.
Change-Id: I5f62500086a807d5082221993c3b491f3b6a1db0
Closes-Bug: #1844028
Diffstat (limited to 'designateclient')
-rw-r--r-- | designateclient/v2/cli/zones.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/designateclient/v2/cli/zones.py b/designateclient/v2/cli/zones.py index 7511b0e..d54154b 100644 --- a/designateclient/v2/cli/zones.py +++ b/designateclient/v2/cli/zones.py @@ -91,7 +91,7 @@ class ListZonesCommand(command.Lister): data = get_all(client.zones.list, criterion) - cols = self.columns + cols = list(self.columns) if client.session.all_projects: cols.insert(1, 'project_id') |