File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ def get_parser(self, prog_name):
96
96
type = str ,
97
97
help = "Filter by domain ID" ,
98
98
)
99
+ parser .add_argument (
100
+ "--aggregate" ,
101
+ default = None ,
102
+ type = str ,
103
+ help = "Filter by aggregate" ,
104
+ )
99
105
parser .add_argument (
100
106
"host" ,
101
107
nargs = "?" ,
@@ -110,6 +116,7 @@ def take_action(self, parsed_args):
110
116
conn = get_cloud_connection ()
111
117
domain = parsed_args .domain
112
118
project = parsed_args .project
119
+ aggregate = parsed_args .aggregate
113
120
114
121
result = []
115
122
if host :
@@ -132,6 +139,10 @@ def take_action(self, parsed_args):
132
139
)
133
140
134
141
else :
142
+ hypervisors = conn .compute .hypervisors ()
143
+ for hypervisor in conn .compute .hypervisors (details = True ):
144
+ print (hypervisor )
145
+
135
146
for service in conn .compute .services (** {"binary" : "nova-compute" }):
136
147
result .append (
137
148
[
You can’t perform that action at this time.
0 commit comments