def _show_data_source(source): # TODO(mattf): why are we passing credentials around like this? if 'credentials' in source._info: del source._info['credentials'] utils.print_dict(source._info)
def _show_cluster_template(template): template._info['node_groups'] = _print_node_group_field(template) utils.print_dict(template._info)
def _show_cluster(cluster): # TODO(mattf): Make this pretty, e.g format node_groups and info urls # Forcing wrap=47 allows for clean display on a terminal of width 80 utils.print_dict(cluster._info, wrap=47)
def do_image_show(cs, args): """Show details of an image.""" image = _get_by_id_or_name(cs.images, args.id, args.name) del image._info['metadata'] image._info['tags'] = ', '.join(image._info['tags']) utils.print_dict(image._info)
def _show_node_group_template(template): template._info['node_processes'] = ( ', '.join(template._info['node_processes']) ) utils.print_dict(template._info)
def do_plugin_show(cs, args): """Show details of a plugin.""" plugin = cs.plugins.get(args.name) plugin._info['versions'] = ', '.join(plugin._info['versions']) utils.print_dict(plugin._info)
def _show_job_binary(binary): # TODO(mattf): why are we passing credentials around like this? if 'extra' in binary._info: del binary._info['extra'] utils.print_dict(binary._info)
def _show_job_template(template): # TODO(mattf): Make "mains" property pretty # TODO(mattf): handle/remove "extra" creds utils.print_dict(template._info)
def _show_node_group_template(template): template._info['node_processes'] = (', '.join( template._info['node_processes'])) utils.print_dict(template._info)
def _show_job(job): # TODO(mattf): make display of info pretty, until then # extract the important status information job._info['status'] = job._info['info']['status'] del job._info['info'] utils.print_dict(job._info)