[mod] inclusion prefixing

This commit is contained in:
Christian Fraß 2023-03-04 15:29:53 +01:00
parent 96a059382e
commit 326d79b666

View file

@ -321,24 +321,6 @@ def conf_normalize_check(
if True:
node__["parameters"] = check_kind_implementations[node_["kind"]].normalize_conf_node(node_["parameters"])
return node__
'''
return {
"name": node_["name"],
"title": node_["title"],
"active": node_["active"],
"threshold": node_["threshold"],
"annoy": node_["annoy"],
"schedule": conf_normalize_schedule(node_["schedule"]),
"notifications": list(
map(
lambda x: conf_normalize_notification(notification_channel_implementations, x),
node_["notifications"]
)
),
"kind": node_["kind"],
"parameters": check_kind_implementations[node_["kind"]].normalize_conf_node(node_["parameters"]),
}
'''
def conf_normalize_root(
@ -455,9 +437,9 @@ def conf_load(
check,
{
"name": string_coin(
"x{{number}}.{{original_name}}",
"{{prefix}}.{{original_name}}",
{
"number": ("%u" % (index + 1)),
"prefix": _os.path.basename(path_).split(".")[0],
"original_name": check["name"],
}
),