From: Sage Weil Date: Sun, 23 Feb 2020 14:23:00 +0000 (-0600) Subject: mgr/cephadm: fix self.log call in get_unique_name X-Git-Tag: v15.1.1~282^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f054ce079a950e933579f55ca4115e8ece3b8455;p=ceph-ci.git mgr/cephadm: fix self.log call in get_unique_name Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index e053b31803f..d1708bb381e 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -997,7 +997,7 @@ class CephadmOrchestrator(MgrModule, orchestrator.OrchestratorClientMixin): name += '.' + ''.join(random.choice(string.ascii_lowercase) for _ in range(6)) if len([d for d in existing if d.daemon_id == name]): - self.log('name %s exists, trying again', name) + self.log.warning('name %s exists, trying again', name) continue return name