changed check for scrub

This commit is contained in:
Marc Mance
2025-04-03 18:54:31 -04:00
parent b07c9e7f90
commit c3df939c6f

View File

@@ -58,7 +58,7 @@ def isPoolScrubbing():
stdout, stderr = process.communicate()
if process.returncode == 0: # Command executed successfully
if grep_string in stdout:
if re.search(grep_string, stdout, re.MULTILINE).group():
print("WARNING: Pool is SCRUBBING")
return True
else: