summaryrefslogtreecommitdiff
path: root/designateclient
diff options
context:
space:
mode:
authorJens Harbott <j.harbott@x-ion.de>2019-09-18 11:44:57 +0000
committerJens Harbott <j.harbott@x-ion.de>2019-09-18 11:47:09 +0000
commit6be5c7b49e32864ebc60b255774d8f9b2a6ef9fc (patch)
treec8b216c94ab766230bc5bb09b0016ecbd4b27f12 /designateclient
parent7cc5f8bb2a31524f612e484e0bd4ea4e024e7d2c (diff)
downloadpython-designateclient-6be5c7b49e32864ebc60b255774d8f9b2a6ef9fc.tar.gz
Fix "recordset list --all-projects" in interactive OSC
Class variables get re-used when multiple commands are executed in a row within a single OSC interactive session. So we need to take a copy before modifying in order to avoid unwanted side-effects. Change-Id: I9716014d65a3f649c23eb78faca2cb6dbf5eb5db Related-Bug: 1844028
Diffstat (limited to 'designateclient')
-rw-r--r--designateclient/v2/cli/recordsets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/designateclient/v2/cli/recordsets.py b/designateclient/v2/cli/recordsets.py
index e4ea9aa..229c346 100644
--- a/designateclient/v2/cli/recordsets.py
+++ b/designateclient/v2/cli/recordsets.py
@@ -97,7 +97,7 @@ class ListRecordSetsCommand(command.Lister):
if parsed_args.action is not None:
criterion["action"] = parsed_args.action
- cols = self.columns
+ cols = list(self.columns)
if parsed_args.zone_id == 'all':
data = get_all(client.recordsets.list_all_zones,