From: Redouane Kachach Date: Mon, 7 Mar 2022 13:03:07 +0000 (+0100) Subject: mgr/cephadm: adding HostSpec validation X-Git-Tag: v18.0.0~1157^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F45275%2Fhead;p=ceph.git mgr/cephadm: adding HostSpec validation Fixes: https://tracker.ceph.com/issues/54342 Signed-off-by: Redouane Kachach --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 0bba96b8c51..d3a5329bb38 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1361,7 +1361,7 @@ Then run the following: :param host: host name """ - spec.validate() + HostSpec.validate(spec) ip_addr = self._check_valid_addr(spec.hostname, spec.addr) if spec.addr == spec.hostname and ip_addr: spec.addr = ip_addr