Skip to content

Commit 9a949f1

Browse files
committed
agent/node-proxy: fix wrong host name used in data endpoint
data['cephx']['name'] will return something like: node-proxy.hostname123 the prefix "node-proxy." has the be removed otherwise there will be a mismatch between what is actually expected. Signed-off-by: Guillaume Abrioux <[email protected]>
1 parent 8ebd93d commit 9a949f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pybind/mgr/cephadm/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def data(self) -> None:
264264
self.validate_node_proxy_data(data)
265265
if 'patch' not in data.keys():
266266
raise cherrypy.HTTPError(400, 'Malformed data received.')
267-
host = data['cephx']['name']
267+
host = data['cephx']['name'][11:]
268268
self.mgr.node_proxy_cache.save(host, data['patch'])
269269
self.raise_alert(data)
270270

0 commit comments

Comments
 (0)