this method does not cause soup to fail

This commit is contained in:
m0duspwnens
2024-06-12 09:11:02 -04:00
parent 0f243bb6ec
commit 98837bc379

View File

@@ -314,7 +314,7 @@ disable_logstash_heavynodes() {
for file in /opt/so/saltstack/local/pillar/minions/*.sls; do
if [[ "$file" =~ "_heavynode.sls" && ! "$file" =~ "/opt/so/saltstack/local/pillar/minions/adv_" ]]; then
if [ "$c" -eq 0 ]; then
((c++))
c=$((c + 1))
FINAL_MESSAGE_QUEUE+=("Logstash has been disabled on all heavynodes. It can be re-enabled via Grid Configuration in SOC.")
fi
echo "Disabling Logstash for: $file"