Filter out null named workers when looking up the worker id in bats (#2531)
This commit is contained in:
1 file changed
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user