浏览代码

[bugfix] uptime_kuma monitor is not called after name change

Paul Wilde 11 月之前
父节点
当前提交
d080bf2ae9
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      borgmatic/hooks/dispatch.py
  2. 1 1
      borgmatic/hooks/monitor.py

+ 1 - 1
borgmatic/hooks/dispatch.py

@@ -31,7 +31,7 @@ HOOK_NAME_TO_MODULE = {
     'pagerduty': pagerduty,
     'pagerduty': pagerduty,
     'postgresql_databases': postgresql,
     'postgresql_databases': postgresql,
     'sqlite_databases': sqlite,
     'sqlite_databases': sqlite,
-    'uptimekuma': uptimekuma,
+    'uptime_kuma': uptimekuma,
 }
 }
 
 
 
 

+ 1 - 1
borgmatic/hooks/monitor.py

@@ -8,7 +8,7 @@ MONITOR_HOOK_NAMES = (
     'loki',
     'loki',
     'ntfy',
     'ntfy',
     'pagerduty',
     'pagerduty',
-    'uptimekuma',
+    'uptime_kuma',
 )
 )