From fd02299119f55a6f46b4295903604562413342ad Mon Sep 17 00:00:00 2001 From: Dimitris Spachos Date: Thu, 7 Jan 2021 12:01:57 +0200 Subject: [PATCH] SRE-48 Resolve conflicts --- src/Audit/StorageSpace.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Audit/StorageSpace.php b/src/Audit/StorageSpace.php index 2e3baba..62ddf1d 100644 --- a/src/Audit/StorageSpace.php +++ b/src/Audit/StorageSpace.php @@ -84,15 +84,15 @@ public function audit(Sandbox $sandbox) { } //end for if (count($storage_warnings)) { - $msg = "The following filesystems are bellow or euqal to the threshold ({$threshold}%)." . PHP_EOL; + $msg = "The following filesystems are bellow or equal to the threshold ({$threshold}%)." . PHP_EOL; foreach ($storage_warnings as $item) { $msg .= $item . PHP_EOL; } - $sandbox->setParameter('warning_message', $msg); - return Audit::WARNING; + $sandbox->setParameter('status', $msg); + return Audit::FAILURE; } - $sandbox->setParameter('status', "All filestystems have free space above threshhold ({$threshold}%)."); + $sandbox->setParameter('status', "All filestystems have free space above threshold ({$threshold}%)."); return Audit::SUCCESS; } }