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 <gabrioux@ibm.com>
(cherry picked from commit
224dd36df9c57e2162407ea0b98598f401884060)
self.validate_node_proxy_data(data)
if 'patch' not in data.keys():
raise cherrypy.HTTPError(400, 'Malformed data received.')
- host = data['cephx']['name']
+ host = data['cephx']['name'][11:]
self.mgr.node_proxy_cache.save(host, data['patch'])
self.raise_alert(data)