Skip to content
Snippets Groups Projects
Commit b0ce317c authored by Seblu's avatar Seblu
Browse files

command list use rpccall function

parent 6d53c823
No related branches found
No related tags found
No related merge requests found
......@@ -26,10 +26,7 @@ class Command_list(TqlCommand):
self.parse_args(argv)
if len(self.args) == 0:
self.args.append("")
try:
objs = self.cli.rpc.call("list", str.join("", self.args))
except RpcError as e:
raise cmdError("RPCError: %s"%str(e))
objs = self.rpccall("list", str.join("", self.args), _status=False)
if len(objs) == 0:
return
if self.options.align:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment