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

Before Change


    gpus_items = OrderedDict()
    for gpu in gpus:
        for k, v in six.iteritems(gpu):
            if k in gpus_items:
                gpus_items[k].append(v)
            else:
                gpus_items[k] = [v]

    if gpus_items:
        headers = six.iterkeys(gpu)
        // remove the cluster_node uuid
        gpus_items.pop("cluster_node")

After Change


        sys.exit(0)
    node = node_config.to_dict()
    gpus = node.pop("gpus", [])
    Printer.print_header("Node info:")
    dict_tabulate(node)

    gpus_items = list_dicts_to_tabulate(gpus)
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: cd853d7d3d252ba560ab4f300443a2e2ed9ed19a
Time: 2020-06-09
Author: mouradmourafiq@gmail.com
File Name: core/polyaxon/cli/operations.py
Class Name:
Method Name: service


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_cluster_info