]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: Alertmanager fails to POST alerts
authorAvan Thakkar <athakkar@localhost.localdomain>
Tue, 22 Jun 2021 11:46:45 +0000 (17:16 +0530)
committerAvan Thakkar <athakkar@localhost.localdomain>
Tue, 22 Jun 2021 11:46:45 +0000 (17:16 +0530)
Fixes: https://tracker.ceph.com/issues/51312
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
src/pybind/mgr/dashboard/controllers/prometheus.py

index 05b4ffc52354f3bf0d4b67a81b6736502f5c953e..21bd151682bb001f8833ad9348b3af1602ec4ddc 100644 (file)
@@ -18,7 +18,7 @@ class PrometheusReceiver(BaseController):
     """
     notifications = []
 
-    @Endpoint('POST', path='/')
+    @Endpoint('POST', path='/', version=None)
     def fetch_alert(self, **notification):
         notification['notified'] = datetime.now().isoformat()
         notification['id'] = str(len(self.notifications))