Browse Source

fixes after rebasing with #4485

juanvallejo 7 years ago
parent
commit
8af1839377

+ 0 - 1
roles/openshift_health_checker/openshift_checks/disk_availability.py

@@ -44,7 +44,6 @@ class DiskAvailability(OpenShiftCheck):
         },
     }
 
-    @classmethod
     def is_active(self):
         """Skip hosts that do not have recommended disk space requirements."""
         group_names = self.get_var("group_names", default=[])

+ 2 - 2
roles/openshift_health_checker/test/disk_availability_test.py

@@ -224,8 +224,8 @@ def test_min_required_space_changes_with_upgrade_context(name, group_names, cont
         ansible_mounts=ansible_mounts,
     )
 
-    check = DiskAvailability(execute_module=fake_execute_module)
-    result = check.run(tmp=None, task_vars=task_vars)
+    check = DiskAvailability(fake_execute_module, task_vars)
+    result = check.run()
 
     assert result.get("failed", False) == failed
     for word in extra_words: