def delete_cluster(request, name, stage): cluster_name = common.get_cluster_name(request, name, stage) log.info("Delete cluster {}".format(cluster_name)); clusters_helper.delete_cluster(request, cluster_name) # Remove group and env relationship environs_helper.remove_env_capacity(request, name, stage, capacity_type="GROUP", data=cluster_name) return redirect('/env/{}/{}/config/capacity/'.format(name, stage))
def delete_cluster(request, name, stage): cluster_name = common.get_cluster_name(request, name, stage) log.info("Delete cluster {}".format(cluster_name)) clusters_helper.delete_cluster(request, cluster_name) # Remove group and env relationship environs_helper.remove_env_capacity( request, name, stage, capacity_type="GROUP", data=cluster_name) return redirect('/env/{}/{}/config/capacity/'.format(name, stage))
def delete_cluster(request, name, stage): cluster_name = common.get_cluster_name(request, name, stage) clusters_helper.delete_cluster(request, cluster_name) # Update isDocker and cluster name in env_info = {} env_info['clusterName'] = '' env_info['isDocker'] = False environs_helper.update_env_basic_config(request, name, stage, data=env_info) # Remove group and env relationship environs_helper.remove_env_capacity(request, name, stage, capacity_type="GROUP", data=cluster_name) return redirect('/env/{}/{}/config/capacity/'.format(name, stage))
def delete_cluster(request, name, stage): clusters_helper.delete_cluster(request, name, stage) return redirect('/env/{}/{}/config/clusters/'.format(name, stage))