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
......@@ -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 = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment