]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
node-proxy: update endpoint url in Reporter.loop()
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 20 Jun 2023 11:31:40 +0000 (13:31 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:52:43 +0000 (14:52 +0000)
change the path of the endpoint to something more generic

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit f71dad1a11abf73ab17028e8a983439401c3893f)

src/cephadm/node-proxy/reporter.py

index 3636e1ab3fa6bfd45e63362f1fe77bbf23d4e1be..a5ba531d1a8def19ff102df5c7d67c158933c257 100644 (file)
@@ -37,7 +37,7 @@ class Reporter:
                     d = self.system.get_system()
                     try:
                         # TODO: add a timeout parameter to the reporter in the config file
-                        requests.post(f"{self.observer_url}/fake_endpoint", json=d, timeout=5)
+                        requests.post(f"{self.observer_url}/", json=d, timeout=5)
                     except requests.exceptions.RequestException as e:
                         log.logger.error(f"The reporter couldn't send data to the mgr: {e}")
                         # Need to add a new parameter 'max_retries' to the reporter if it can't