wait_for_namespace should take two args (#9086)

This commit is contained in:
R.B. Boyer 2020-11-02 14:31:19 -06:00 committed by GitHub
parent 0d8a30d8e3
commit b8a623d3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -687,8 +687,9 @@ function read_config_entry {
}
function wait_for_namespace {
local DC=${1:-primary}
retry_default docker_curl "$DC" -sLf "http://127.0.0.1:8500/v1/namespace/${1}" >/dev/null
local NS="${1}"
local DC=${2:-primary}
retry_default docker_curl "$DC" -sLf "http://127.0.0.1:8500/v1/namespace/${NS}" >/dev/null
}
function wait_for_config_entry {