def GET(self): try: f = open("%s/olsystem.yml" % config.admin.olsystem_root) nodes = services.load_all(yaml.load(f), config.admin.nagios_url) f.close() except IOError, i: f = None nodes = []
def GET(self): try: f = open("%s/olsystem.yml"%config.admin.olsystem_root) nodes = services.load_all(yaml.load(f), config.admin.nagios_url) f.close() except IOError, i: f = None nodes = []
def GET(self): try: f = open("%s/olsystem.yml"%config.admin.olsystem_root) nodes = services.load_all(yaml.load(f), config.admin.nagios_url) f.close() except IOError as i: f = None nodes = [] return render_template("admin/services", nodes)
def GET(self): try: f = open("%s/olsystem.yml" % config.admin.olsystem_root) nodes = services.load_all(yaml.load(f), config.admin.nagios_url) f.close() except IOError as i: f = None nodes = [] return render_template("admin/services", nodes)