Skip to content
Snippets Groups Projects
Commit c54784d9 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Use new RPC call in “gnt-node list”

Reviewed-by: iustinp
parent 02f7fe54
No related branches found
No related tags found
No related merge requests found
......@@ -78,8 +78,7 @@ def ListNodes(opts, args):
else:
selected_fields = opts.output.split(",")
op = opcodes.OpQueryNodes(output_fields=selected_fields, names=[])
output = SubmitOrSend(op, opts)
output = GetClient().QueryNodes([], selected_fields)
if not opts.no_headers:
headers = {
......
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