From 3e695e6d772a0315113d32f7177b08ea7b046c88 Mon Sep 17 00:00:00 2001 From: Redouane Kachach Date: Wed, 28 Sep 2022 11:21:33 +0200 Subject: [PATCH] Fixing agent URL Signed-off-by: Redouane Kachach --- src/pybind/mgr/cephadm/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/agent.py b/src/pybind/mgr/cephadm/agent.py index a968c74c612b..41a0b5b0b6ad 100644 --- a/src/pybind/mgr/cephadm/agent.py +++ b/src/pybind/mgr/cephadm/agent.py @@ -54,7 +54,7 @@ class AgentEndpoint: def configure_routes(self) -> None: d = cherrypy.dispatch.RoutesDispatcher() - d.connect(name='host-data', route='/data', + d.connect(name='host-data', route='/data/', controller=self.host_data.POST, conditions=dict(method=['POST'])) cherrypy.tree.mount(None, '/', config={'/': {'request.dispatch': d}}) -- 2.47.3