[mod] inclusion prefixing
This commit is contained in:
parent
96a059382e
commit
326d79b666
|
|
@ -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"],
|
||||
}
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue