diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-04-03 11:20:43 +0200 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-04-04 18:00:53 +0200 |
commit | 731226dcacafd72db2bb4109f4aebcdb25be061d (patch) | |
tree | b71d621b0b5f8e5f477ccaec0ca8f746f3f3e33b /roles | |
parent | fe0dafda921b604f6a01e405b4a07df8aa340b03 (diff) | |
download | openshift-731226dcacafd72db2bb4109f4aebcdb25be061d.tar.gz openshift-731226dcacafd72db2bb4109f4aebcdb25be061d.tar.bz2 openshift-731226dcacafd72db2bb4109f4aebcdb25be061d.tar.xz openshift-731226dcacafd72db2bb4109f4aebcdb25be061d.zip |
Remove unnecessary code
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_health_checker/action_plugins/openshift_health_check.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/roles/openshift_health_checker/action_plugins/openshift_health_check.py b/roles/openshift_health_checker/action_plugins/openshift_health_check.py index 793bb6e78..03c40b78b 100644 --- a/roles/openshift_health_checker/action_plugins/openshift_health_check.py +++ b/roles/openshift_health_checker/action_plugins/openshift_health_check.py @@ -73,10 +73,7 @@ class ActionModule(ActionBase): load_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 if check_name in known_checks: other_cls = known_checks[check_name].__class__ @@ -86,7 +83,6 @@ class ActionModule(ActionBase): cls.__module__, cls.__name__, other_cls.__module__, other_cls.__name__)) known_checks[check_name] = cls(execute_module=self._execute_module) - return known_checks |