def paint_wato(what, row, tags, custom_vars): if not wato.may_see_hosts() or html.mobile: return wato_folder = wato_folder_from_filename(row["host_filename"]) if wato_folder != None: if what == "host": return wato_link(wato_folder, row["site"], row["host_name"], "edithost") elif row["service_description"] in [ "Check_MK inventory", "Check_MK Discovery" ]: return wato_link(wato_folder, row["site"], row["host_name"], "inventory")
def paint_wato(what, row, tags, custom_vars): if not wato.may_see_hosts() or html.mobile: return filename = row["host_filename"] if filename.startswith("/wato/") and filename.endswith("hosts.mk"): wato_folder = filename[6:-8].rstrip("/") if what == "host": return wato_link(wato_folder, row["site"], row["host_name"], "edithost") elif row["service_description"].lower() == "check_mk inventory": return wato_link(wato_folder, row["site"], row["host_name"], "inventory")