diff options
author | Zuul <zuul@review.opendev.org> | 2021-12-25 10:54:27 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-12-25 10:54:27 +0000 |
commit | b79c0b6cfbd1b32490722171b38771121561cff4 (patch) | |
tree | ee40aca11a93f4b973241c6b55c1932148c89232 | |
parent | eb139f6fe88b79eb70e9a19b47cb6f67f7e12fd2 (diff) | |
parent | eca1fcd65f22ead444ec39fe20f48c83f8d7c1cf (diff) | |
download | python-openstackclient-b79c0b6cfbd1b32490722171b38771121561cff4.tar.gz |
Merge "Include hosts in aggregate list --long"
-rw-r--r-- | openstackclient/compute/v2/aggregate.py | 2 | ||||
-rw-r--r-- | openstackclient/tests/unit/compute/v2/test_aggregate.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/openstackclient/compute/v2/aggregate.py b/openstackclient/compute/v2/aggregate.py index e39eb2d2..37522a78 100644 --- a/openstackclient/compute/v2/aggregate.py +++ b/openstackclient/compute/v2/aggregate.py @@ -193,12 +193,14 @@ class ListAggregate(command.Lister): "Name", "Availability Zone", "Properties", + "Hosts", ) columns = ( "ID", "Name", "Availability Zone", "Metadata", + "Hosts", ) else: column_headers = columns = ( diff --git a/openstackclient/tests/unit/compute/v2/test_aggregate.py b/openstackclient/tests/unit/compute/v2/test_aggregate.py index 7c4fe5cb..cad85e4d 100644 --- a/openstackclient/tests/unit/compute/v2/test_aggregate.py +++ b/openstackclient/tests/unit/compute/v2/test_aggregate.py @@ -234,6 +234,7 @@ class TestAggregateList(TestAggregate): "Name", "Availability Zone", "Properties", + "Hosts", ) list_data = (( @@ -251,6 +252,7 @@ class TestAggregateList(TestAggregate): for key, value in TestAggregate.fake_ag.metadata.items() if key != 'availability_zone' }), + format_columns.ListColumn(TestAggregate.fake_ag.hosts), ), ) def setUp(self): |