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
This commit is contained in:
Jens Harbott 2019-09-18 11:44:57 +00:00
parent 7cc5f8bb2a
commit 6be5c7b49e

View File

@ -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,