]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/devicehealth: fix is_valid_daemon_name typo error 24822/head
authorRjerk <rjerk.whatever@gmail.com>
Tue, 30 Oct 2018 08:16:08 +0000 (16:16 +0800)
committerRjerk <rjerk.whatever@gmail.com>
Tue, 30 Oct 2018 08:16:08 +0000 (16:16 +0800)
Signed-off-by: Lan Liu <liulan@umcloud.com>
src/pybind/mgr/devicehealth/module.py

index 5d34739eb9d1ad66d4bfc762c1a668a3ca2faec1..848126a42f48ac37a0247d07c067c957a077b03f 100644 (file)
@@ -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'):