Include hosts in aggregate list --long
This makes it easier to get the total list of aggregates and the hosts belonging to each of them (specially for scripting purposes). Change-Id: I94833c15075ae655bc11e7c0fc47c0abad5846fc Signed-off-by: David Caro <me@dcaro.es>
This commit is contained in:
parent
443c311fc2
commit
eca1fcd65f
openstackclient
@ -193,12 +193,14 @@ class ListAggregate(command.Lister):
|
||||
"Name",
|
||||
"Availability Zone",
|
||||
"Properties",
|
||||
"Hosts",
|
||||
)
|
||||
columns = (
|
||||
"ID",
|
||||
"Name",
|
||||
"Availability Zone",
|
||||
"Metadata",
|
||||
"Hosts",
|
||||
)
|
||||
else:
|
||||
column_headers = columns = (
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user