]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/devicehealth: Fix python 3 incompatiblity 27172/head
authorMarius Schiffer <marius@mschiffer.de>
Mon, 25 Mar 2019 22:18:01 +0000 (23:18 +0100)
committerMarius Schiffer <marius@mschiffer.de>
Mon, 25 Mar 2019 22:18:01 +0000 (23:18 +0100)
Fixes: http://tracker.ceph.com/issues/38939
Signed-off-by: Marius Schiffer <marius@mschiffer.de>
src/pybind/mgr/devicehealth/module.py

index 568929b878a02b919651bd1df45e19ba90e8f852..2e14ca98a941429e6cad6ce3fe7f2caeed9855b7 100644 (file)
@@ -547,7 +547,7 @@ class Module(MgrModule):
                 did += 1
             if to_mark_out:
                 self.mark_out_etc(to_mark_out)
-        for warning, ls in health_warnings.iteritems():
+        for warning, ls in iteritems(health_warnings):
             n = len(ls)
             if n:
                 checks[warning] = {