def view_cluster_replacement_schedule(request, name, stage, replacement_id):
    env = environs_helper.get_env_by_stage(request, name, stage)
    cluster_name = '{}-{}'.format(name, stage)
    schedule = clusters_helper.get_cluster_replacement_schedule(
        request, cluster_name, replacement_id)
    return render(request, 'clusters/replace_schedule.html', {
        "env": env,
        "schedule": schedule
    })
Example #2
0
def view_cluster_replacement_schedule(request, name, stage, replacement_id):
    env = environs_helper.get_env_by_stage(request, name, stage)
    cluster_name = '{}-{}'.format(name, stage)
    schedule = clusters_helper.get_cluster_replacement_schedule(
        request, cluster_name, replacement_id)
    return render(request, 'clusters/replace_schedule.html', {
        "env": env,
        "schedule": schedule
    })