]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: fix self.log call in get_unique_name
authorSage Weil <sage@redhat.com>
Sun, 23 Feb 2020 14:23:00 +0000 (08:23 -0600)
committerSage Weil <sage@redhat.com>
Mon, 24 Feb 2020 13:39:46 +0000 (07:39 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py

index e053b31803fcce319650bcda669f2201034bd657..d1708bb381e92927c93a66c84e49b6b1fee3844e 100644 (file)
@@ -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