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

pull/2533/head
Todd 4 years ago committed by GitHub
parent c9d902ebd0
commit 1437d5452d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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() {

Loading…
Cancel
Save