Ignore connect-proxy tasks
This commit is contained in:
parent
2c38dc8531
commit
b8e536d701
2
ctctl
2
ctctl
|
@ -778,7 +778,7 @@ ctctl_ls_alloc_of_job(){
|
|||
ctctl_ls_tasks_of_alloc(){
|
||||
local ALLOC=$1
|
||||
local IFS=$'\n'
|
||||
for TASK in $(nomad alloc status -json "${ALLOC}" | jq -r '.TaskStates | to_entries[] | select(.value.State=="running") | .key'); do
|
||||
for TASK in $(nomad alloc status -json "${ALLOC}" | jq -r '.TaskStates | to_entries[] | select(.value.State=="running") | select(.key | startswith("connect-proxy") | not) | .key'); do
|
||||
echo "${TASK}"
|
||||
done
|
||||
unset TASK ALLOC
|
||||
|
|
Loading…
Reference in New Issue