From: Redouane Kachach Date: Wed, 28 Sep 2022 09:21:33 +0000 (+0200) Subject: Fixing agent URL X-Git-Tag: v18.1.0~1062^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47903%2Fhead;p=ceph.git Fixing agent URL Signed-off-by: Redouane Kachach --- diff --git a/src/pybind/mgr/cephadm/agent.py b/src/pybind/mgr/cephadm/agent.py index a968c74c612..41a0b5b0b6a 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}})