Skip to content

Commit

Permalink
mgr/cephadm: adding HostSpec validation
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/54342

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
  • Loading branch information
rkachach committed Mar 24, 2022
1 parent e39304d commit 15ba147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/mgr/cephadm/module.py
Expand Up @@ -1361,7 +1361,7 @@ def _add_host(self, spec):
: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
Expand Down

0 comments on commit 15ba147

Please sign in to comment.