From e3d2ce67cb57b503a35db8444a879a646810d0d2 Mon Sep 17 00:00:00 2001 From: Christopher Zell Date: Fri, 11 Feb 2022 19:14:56 +0100 Subject: [PATCH] fix: remove quotes Quoting the function call caused to break the command execution, removing the quotes should solve it. --- chaos-workers/chaos-experiments/scripts/utils.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chaos-workers/chaos-experiments/scripts/utils.sh b/chaos-workers/chaos-experiments/scripts/utils.sh index f40893374..c1abf0371 100755 --- a/chaos-workers/chaos-experiments/scripts/utils.sh +++ b/chaos-workers/chaos-experiments/scripts/utils.sh @@ -38,7 +38,7 @@ function runOnAllBrokers() { namespace=$(getNamespace) - pods=$(kubectl get pod -n "$namespace" "$(getBrokerLabels)" -o jsonpath="{.items[*].metadata.name}") + pods=$(kubectl get pod -n "$namespace" $(getBrokerLabels) -o jsonpath="{.items[*].metadata.name}") set +e for pod in $pods @@ -53,7 +53,7 @@ function getBroker() index=${1:-0} namespace=$(getNamespace) - pod=$(kubectl get pod -n "$namespace" "$(getBrokerLabels)" -o jsonpath="{.items[$index].metadata.name}") + pod=$(kubectl get pod -n "$namespace" $(getBrokerLabels) -o jsonpath="{.items[$index].metadata.name}") echo "$pod" } @@ -61,7 +61,7 @@ function getBroker() function getGateway() { namespace=$(getNamespace) - pod=$(kubectl get pod -n "$namespace" "$(getGatewayLabels)" -o jsonpath="{.items[0].metadata.name}") + pod=$(kubectl get pod -n "$namespace" $(getGatewayLabels) -o jsonpath="{.items[0].metadata.name}") echo "$pod" }