]> git.apps.os.sepia.ceph.com Git - ceph-ci.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:16:01 +0000 (15:16 +0000)
commitb7c778a17e1253d83b1b40a13b1d835e148d6fcf
treecaab4bd69b81667e694bc5338cc2558f924f8c21
parent9f5a553de223c2c11b32364a3c8f02dcd2cd700e
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>
(cherry picked from commit bda2568d8c73bbdc77897d22a99f74c1f4a23511)
src/pybind/mgr/cephadm/agent.py