def GET(self): user_data = web.input() env_id = user_data.env_id config = Config.Config (str(env_id)) #get stopped instances stopped_instances = list() stopped_instances=config.get_list('stopped_instances') #get running instances instance_list = aws_ec2.get_running_instances(config) instance_id_list = list() for instance in instance_list: instance_id_list.append(instance.id) return render.instances(instance_id_list,str(env_id),stopped_instances)
def GET(self): user_data = web.input() return render.display_graph("/query?inst_id="+str(user_data.inst_id)+"&env="+str(user_data.env))