57a90c815b43fdfa6031597bbafa9fbcbfc00fe6,polyaxon_cli/cli/cluster.py,,get_cluster_info,#Any#,14
Before Change
if k in nodes:
nodes[k].append(v)
else:
nodes[k] = [v]
if nodes:
click.secho("Cluster Nodes:", fg="yellow")
click.echo(tabulate(nodes, headers="keys"))
After Change
def get_cluster_info(cluster_config):
Printer.print_header("Cluster info:")
cluster_dict = cluster_config.to_dict()
cluster_info = cluster_dict["version_api"]
dict_tabulate(cluster_info)
nodes = list_dicts_to_tabulate(cluster_dict["nodes"])
if nodes:
Printer.print_header("Cluster Nodes:")
dict_tabulate(nodes, is_list_dict=True)
def get_node_info(node_config):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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_cluster_info
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
Project Name: polyaxon/polyaxon
Commit Name: 2851d7e270787827274856de9df8e87e469fca14
Time: 2020-11-30
Author: contact@polyaxon.com
File Name: core/polyaxon/cli/operations.py
Class Name:
Method Name: get_run_details
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