57a90c815b43fdfa6031597bbafa9fbcbfc00fe6,polyaxon_cli/cli/cluster.py,,get_node_info,#Any#,34

Before Change


    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:")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: polyaxon/polyaxon
Commit Name: 57a90c815b43fdfa6031597bbafa9fbcbfc00fe6
Time: 2017-12-13
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/cluster.py
Class Name:
Method Name: get_node_info


Project Name: polyaxon/polyaxon
Commit Name: dfc8d706110d5d0ecd3b0d3e4d268bc09e125742
Time: 2017-12-13
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/check.py
Class Name:
Method Name: check_polyaxonfile


Project Name: polyaxon/polyaxon
Commit Name: 57a90c815b43fdfa6031597bbafa9fbcbfc00fe6
Time: 2017-12-13
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/auth.py
Class Name:
Method Name: login