From 1ab253b8c38e989388f5d0d5d78cbafbb7d73655 Mon Sep 17 00:00:00 2001 From: Wes Date: Tue, 28 Mar 2023 13:18:14 +0000 Subject: [PATCH] Use explicit path to so-elasticsearch-query --- salt/common/tools/sbin/so-elasticsearch-cluster-space-used | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-elasticsearch-cluster-space-used b/salt/common/tools/sbin/so-elasticsearch-cluster-space-used index 3e8832ba0..dbc35440d 100755 --- a/salt/common/tools/sbin/so-elasticsearch-cluster-space-used +++ b/salt/common/tools/sbin/so-elasticsearch-cluster-space-used @@ -10,7 +10,7 @@ TOTAL_AVAILABLE_SPACE=0 # Iterate through the output of _cat/allocation for each node in the cluster to determine the total available space -for i in $(so-elasticsearch-query _cat/allocation | awk '{print $3}'); do +for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | awk '{print $3}'); do size=$(echo $i | grep -oE '[0-9].*' | awk '{print int($1+0.5)}') unit=$(echo $i | grep -oE '[A-Za-z]+') if [ $unit = "tb" ]; then