

def print_env_short_list(ctx, param, value):
    if ((not value) or ctx.resilient_parsing):
        return
    nova_creds = config.run_config()
    row = 1
    for nova_env in nova_creds.keys():
        executable = 'nova'
        auth_url = ''
        for (param, value) in sorted(nova_creds[nova_env].items()):
            if (param.upper() == 'OS_EXECUTABLE'):
                executable = value
            if ((param.upper() == 'OS_AUTH_URL') and ('inova' in value)):
                executable = 'inova'
            if (param.upper() == 'OS_AUTH_URL'):
                auth_url = value
        color = 'green'
        if ((row % 2) == 0):
            color = 'red'
        env = click.style(nova_env, fg=color)
        click.echo(('%s (%s) @ %s' % (env, executable, auth_url)))
        row += 1
    ctx.exit()

dataset/ETHPy150Open major/supernova/supernova/executable.py print_env_short_list/original