diff options
| author | Thobias Salazar Trevisan <thobiast@gmail.com> | 2022-10-24 14:20:44 -0300 |
|---|---|---|
| committer | Thobias Salazar Trevisan <thobiast@gmail.com> | 2022-12-14 15:19:08 -0300 |
| commit | 794334ec2405bcfe086b3a56c796a9b6c2f7c685 (patch) | |
| tree | 5422243a25077335484cdc348643010e7f790dd9 /openstackclient/tests | |
| parent | b52ae93cd2f18e23185685b4984b466e92635531 (diff) | |
| download | python-openstackclient-794334ec2405bcfe086b3a56c796a9b6c2f7c685.tar.gz | |
Fix server list error with --long and -c options
Using options --long and -c and specifying same columns added
by --long option, it passes duplicated column names to prettytable and
report the following error:
Field names must be unique!
This patch removes duplicated columns.
Change-Id: I9c0bd09c50dac568ca1980a6b53a6c544b85c2aa
Diffstat (limited to 'openstackclient/tests')
| -rw-r--r-- | openstackclient/tests/unit/compute/v2/test_server.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/compute/v2/test_server.py b/openstackclient/tests/unit/compute/v2/test_server.py index d7e84ba3..16ec9e12 100644 --- a/openstackclient/tests/unit/compute/v2/test_server.py +++ b/openstackclient/tests/unit/compute/v2/test_server.py @@ -4706,6 +4706,7 @@ class TestServerList(_TestServerList): self.assertIn('Availability Zone', columns) self.assertIn('Host', columns) self.assertIn('Properties', columns) + self.assertCountEqual(columns, set(columns)) def test_server_list_no_name_lookup_option(self): self.data = tuple( |
