]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
node-proxy: raise HTTPError 404 error when no host is found
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 23 Nov 2023 16:08:18 +0000 (16:08 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 15:07:20 +0000 (15:07 +0000)
commit5cb8f2af44ea587f3c85d72bee385f571e6cc2cb
tree84c3bed1397f8f06b91e714ed4d4956be441c836
parentff72f18b5b199408b3789a5da500d5e6d4fbc74a
node-proxy: raise HTTPError 404 error when no host is found

Raise a 404 HTTPError when these differents endpoints
are passed an inexisting hostname.
Otherwise the code will fail with a `KeyError` exception.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/pybind/mgr/cephadm/agent.py