updated pool scrub test

This commit is contained in:
Marc Mance
2025-04-03 18:56:09 -04:00
parent c3df939c6f
commit 02d01581f3

View File

@@ -58,8 +58,10 @@ def isPoolScrubbing():
stdout, stderr = process.communicate()
if process.returncode == 0: # Command executed successfully
if re.search(grep_string, stdout, re.MULTILINE).group():
print("WARNING: Pool is SCRUBBING")
if re.search(grep_string, stdout, re.MULTILINE):
print("--------------------------")
print("WARNING: POOL is SCRUBBING")
print("--------------------------")
return True
else:
print("Checked for Pool Scrubbing; Good to Go...")