浏览代码

Remove unnecessary code

Rodolfo Carvalho 8 年之前
父节点
当前提交
731226dcac
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      roles/openshift_health_checker/action_plugins/openshift_health_check.py

+ 1 - 5
roles/openshift_health_checker/action_plugins/openshift_health_check.py

@@ -73,10 +73,7 @@ class ActionModule(ActionBase):
         load_checks()
         load_checks()
 
 
         known_checks = {}
         known_checks = {}
-
-        known_check_classes = set(cls for cls in OpenShiftCheck.subclasses())
-
-        for cls in known_check_classes:
+        for cls in OpenShiftCheck.subclasses():
             check_name = cls.name
             check_name = cls.name
             if check_name in known_checks:
             if check_name in known_checks:
                 other_cls = known_checks[check_name].__class__
                 other_cls = known_checks[check_name].__class__
@@ -86,7 +83,6 @@ class ActionModule(ActionBase):
                         cls.__module__, cls.__name__,
                         cls.__module__, cls.__name__,
                         other_cls.__module__, other_cls.__name__))
                         other_cls.__module__, other_cls.__name__))
             known_checks[check_name] = cls(execute_module=self._execute_module)
             known_checks[check_name] = cls(execute_module=self._execute_module)
-
         return known_checks
         return known_checks