From: Rjerk Date: Tue, 30 Oct 2018 08:16:08 +0000 (+0800) Subject: mgr/devicehealth: fix is_valid_daemon_name typo error X-Git-Tag: v14.1.0~767^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=572b047f191064f72fa34f6b10511b9fb948dbb3;p=ceph.git mgr/devicehealth: fix is_valid_daemon_name typo error Signed-off-by: Lan Liu --- diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index 5d34739eb9d..848126a42f4 100644 --- a/src/pybind/mgr/devicehealth/module.py +++ b/src/pybind/mgr/devicehealth/module.py @@ -115,7 +115,7 @@ class Module(MgrModule): self.event = Event() def is_valid_daemon_name(self, who): - l = cmd.get('who', '').split('.') + l = who.split('.') if len(l) != 2: return False if l[0] not in ('osd', 'mon'):