File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 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):
9696 type = str ,
9797 help = "Filter by domain ID" ,
9898 )
99+ parser .add_argument (
100+ "--aggregate" ,
101+ default = None ,
102+ type = str ,
103+ help = "Filter by aggregate" ,
104+ )
99105 parser .add_argument (
100106 "host" ,
101107 nargs = "?" ,
@@ -110,6 +116,7 @@ def take_action(self, parsed_args):
110116 conn = get_cloud_connection ()
111117 domain = parsed_args .domain
112118 project = parsed_args .project
119+ aggregate = parsed_args .aggregate
113120
114121 result = []
115122 if host :
@@ -132,6 +139,10 @@ def take_action(self, parsed_args):
132139 )
133140
134141 else :
142+ hypervisors = conn .compute .hypervisors ()
143+ for hypervisor in conn .compute .hypervisors ():
144+ print (hypervisor )
145+
135146 for service in conn .compute .services (** {"binary" : "nova-compute" }):
136147 result .append (
137148 [
You can’t perform that action at this time.
0 commit comments