Correct logdump logic for kubemark master

This commit is contained in:
Shyam Jeedigunta
2017-09-04 12:19:36 +02:00
parent 156c4b443b
commit c483c13aee
2 changed files with 6 additions and 6 deletions

View File

@@ -176,6 +176,8 @@ function dump_masters() {
elif [[ ! "${master_ssh_supported_providers}" =~ "${KUBERNETES_PROVIDER}" ]]; then
echo "Master SSH not supported for ${KUBERNETES_PROVIDER}"
return
elif [[ -n "${KUBEMARK_MASTER_NAME:-}" ]]; then
master_names=( "${KUBEMARK_MASTER_NAME}" )
else
if ! (detect-master); then
echo "Master not detected. Is the cluster up?"