def create_asg(request, group_name): params = request.POST asgRequest = {} asgRequest["minSize"] = int(params["min_size"]) asgRequest["maxSize"] = int(params["max_size"]) asgRequest["terminationPolicy"] = params["terminationPolicy"] groups_helper.create_autoscaling(request, group_name, asgRequest) return redirect('/groups/{}/config/'.format(group_name))
def create_asg(request, group_name): params = request.POST asgRequest = {} asgRequest["groupName"] = group_name if "attach_instances" in params: asgRequest["attachExistingInstances"] = "true" else: asgRequest["attachExistingInstances"] = "false" asgRequest["minSize"] = int(params["min_size"]) asgRequest["maxSize"] = int(params["max_size"]) asgRequest["terminationPolicy"] = params["terminationPolicy"] groups_helper.create_autoscaling(request, group_name, asgRequest) return redirect('/groups/{}/config/'.format(group_name))