File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1824,14 +1824,16 @@ def namespace(self, args):
1824
1824
@cli .cmd ()
1825
1825
def get_subsystems (self , args ):
1826
1826
"""Get subsystems"""
1827
+ out_func , err_func = self .get_output_functions (args )
1828
+
1827
1829
subsystems = self .stub .get_subsystems (pb2 .get_subsystems_req ())
1828
1830
if args .format == "python" :
1829
1831
return subsystems
1830
1832
subsystems_out = json_format .MessageToJson (
1831
1833
subsystems ,
1832
1834
indent = 4 , including_default_value_fields = True ,
1833
1835
preserving_proto_field_name = True )
1834
- self . logger . info (f"Get subsystems:\n { subsystems_out } " )
1836
+ out_func (f"Get subsystems:\n { subsystems_out } " )
1835
1837
1836
1838
def main_common (client , args ):
1837
1839
client .logger .setLevel (GatewayEnumUtils .get_value_from_key (pb2 .GwLogLevel , args .log_level .lower ()))
You can’t perform that action at this time.
0 commit comments