mirror of
https://github.com/status-im/consul.git
synced 2025-01-21 19:20:41 +00:00
wait_for_namespace should take two args (#9086)
This commit is contained in:
parent
cde495aee9
commit
1b58aae785
@ -687,8 +687,9 @@ function read_config_entry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function wait_for_namespace {
|
function wait_for_namespace {
|
||||||
local DC=${1:-primary}
|
local NS="${1}"
|
||||||
retry_default docker_curl "$DC" -sLf "http://127.0.0.1:8500/v1/namespace/${1}" >/dev/null
|
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 {
|
function wait_for_config_entry {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user