Merge pull request #8290 from roberthbailey/unbound-var

Fix an unbound variable error when CA_CERT isn't set.
This commit is contained in:
CJ Cullen 2015-05-14 15:51:55 -07:00
commit 213a1b5e71

View File

@ -362,7 +362,7 @@ EOF
kube_proxy_kubeconfig_file="/srv/salt-overlay/salt/kube-proxy/kubeconfig"
if [ ! -e "${kube_proxy_kubeconfig_file}" ]; then
mkdir -p /srv/salt-overlay/salt/kube-proxy
if [[ ! -z "${CA_CERT}" ]]; then
if [[ ! -z "${CA_CERT:-}" ]]; then
(umask 077;
cat > "${kube_proxy_kubeconfig_file}" <<EOF
apiVersion: v1