From a8f727ad40aae0c359d91c8304954d3bd027de38 Mon Sep 17 00:00:00 2001 From: weslambert Date: Tue, 25 Aug 2020 11:19:36 -0400 Subject: [PATCH] Don't write to log if not past CRIT_DISK_USAGE --- salt/common/tools/sbin/so-sensor-clean | 2 -- 1 file changed, 2 deletions(-) diff --git a/salt/common/tools/sbin/so-sensor-clean b/salt/common/tools/sbin/so-sensor-clean index 886b16fcd..9f295ced5 100755 --- a/salt/common/tools/sbin/so-sensor-clean +++ b/salt/common/tools/sbin/so-sensor-clean @@ -115,7 +115,5 @@ if [ "$CUR_USAGE" -gt "$CRIT_DISK_USAGE" ]; then clean CUR_USAGE=$(df -P $SENSOR_DIR | tail -1 | awk '{print $5}' | tr -d %) done -else - echo "$(date) - Current usage value of $CUR_USAGE not greater than CRIT_DISK_USAGE value of $CRIT_DISK_USAGE..." >> $LOG fi