Filter out null named workers when looking up the worker id in bats (#2531)

This commit is contained in:
Todd authored and GitHub committed 2022-10-11 14:01:20 -07:00
1 parent c9d902ebd0
commit 1437d5452d
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@ function list_workers() {
function worker_id() {
local id=$1
strip $(list_workers | jq -c ".items[] | select(.name | contains(\"$id\")) | .[\"id\"]")
strip $(list_workers | jq -c ".items[] | select(.name != null) | select(.name | contains(\"$id\")) | .[\"id\"]")
}
function has_default_worker_actions() {