Loading cccli/command/command.py +1 −1 Original line number Diff line number Diff line Loading @@ -194,7 +194,7 @@ class TqlCommand(OptionCommand): l[_options["tql_index"]] = "id=%s"%obj["id"] d = self.cli.rpc.call(*tuple(l), **kwargs) if _options["callback"] is not None: _options["callback"](obj["output"]) _options["callback"](obj) if _options["status"]: self.print_objects(d, ("output")) except RpcError as e: Loading cccli/command/host.py +2 −3 Original line number Diff line number Diff line Loading @@ -26,9 +26,8 @@ class Command_exec(TqlCommand): def _cb_print_output(self, d): '''Print output of execute by object''' for o in d: self.printer.out("%s output:"%o[0]) self.printer.out("".join(o[1][0][0:]), nl="") self.printer.out("%s output:"%d["id"]) self.printer.out(d.get("output", ""), nl="") class Command_shutdown(TqlCommand): '''Shutdown a physical host''' Loading Loading
cccli/command/command.py +1 −1 Original line number Diff line number Diff line Loading @@ -194,7 +194,7 @@ class TqlCommand(OptionCommand): l[_options["tql_index"]] = "id=%s"%obj["id"] d = self.cli.rpc.call(*tuple(l), **kwargs) if _options["callback"] is not None: _options["callback"](obj["output"]) _options["callback"](obj) if _options["status"]: self.print_objects(d, ("output")) except RpcError as e: Loading
cccli/command/host.py +2 −3 Original line number Diff line number Diff line Loading @@ -26,9 +26,8 @@ class Command_exec(TqlCommand): def _cb_print_output(self, d): '''Print output of execute by object''' for o in d: self.printer.out("%s output:"%o[0]) self.printer.out("".join(o[1][0][0:]), nl="") self.printer.out("%s output:"%d["id"]) self.printer.out(d.get("output", ""), nl="") class Command_shutdown(TqlCommand): '''Shutdown a physical host''' Loading