From 15ba147a2a4cae8ca69437382136d328a1f416f2 Mon Sep 17 00:00:00 2001 From: Redouane Kachach Date: Mon, 7 Mar 2022 14:03:07 +0100 Subject: [PATCH] mgr/cephadm: adding HostSpec validation Fixes: https://tracker.ceph.com/issues/54342 Signed-off-by: Redouane Kachach --- src/pybind/mgr/cephadm/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 0bba96b8c512e..d3a5329bb38db 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 -- 2.47.3