summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2
diff options
context:
space:
mode:
authorDavid Caro <me@dcaro.es>2021-06-02 16:33:53 +0200
committerDavid Caro <me@dcaro.es>2021-06-03 09:44:39 +0200
commiteca1fcd65f22ead444ec39fe20f48c83f8d7c1cf (patch)
treeb2e70837938af975be150352587bbd2757358020 /openstackclient/compute/v2
parent443c311fc288eefe1b9223b6b51a94121ab9d301 (diff)
downloadpython-openstackclient-eca1fcd65f22ead444ec39fe20f48c83f8d7c1cf.tar.gz
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>
Diffstat (limited to 'openstackclient/compute/v2')
-rw-r--r--openstackclient/compute/v2/aggregate.py2
1 files changed, 2 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 = (