items = six.iteritems(node)
click.echo(tabulate(list(items)))
click.secho("Node GPUs:", fg="yellow")
gpus_items = OrderedDict()
for gpu in gpus:
for k, v in six.iteritems(gpu):
if k in gpus_items:
After Change
def get_node_info(node_config):
if not node_config:
Printer.print_error("No node was found.")
sys.exit(0)
node = node_config.to_dict()
gpus = node.pop("gpus", [])
Printer.print_header("Node info:")