From 7cc5f8bb2a31524f612e484e0bd4ea4e024e7d2c Mon Sep 17 00:00:00 2001 From: Joseph M Date: Sat, 14 Sep 2019 23:32:58 -0400 Subject: 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 --- designateclient/v2/cli/zones.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- cgit v1.2.1