File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-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 :
@@ -133,6 +140,7 @@ def take_action(self, parsed_args):
133140
134141 else :
135142 for service in conn .compute .services (** {"binary" : "nova-compute" }):
143+ print (service )
136144 result .append (
137145 [
138146 service .id ,
You can’t perform that action at this time.
0 commit comments