Skip to content

Commit

Permalink
Merge pull request #383 from mogren/release-1.4
Browse files Browse the repository at this point in the history
Avoid unbound variable error
  • Loading branch information
mogren authored Apr 8, 2019
2 parents b388426 + 49181af commit 38065c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/aws-cni-support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ curl http://localhost:61678/v1/eni-configs > ${LOG_DIR}/eni-configs.out
curl http://localhost:61678/metrics 2>&1 > ${LOG_DIR}/metrics.out

# Collecting kubelet introspection data
if [[ -n "${KUBECONFIG}" ]]; then
if [[ -n "${KUBECONFIG:-}" ]]; then
command -v kubectl > /dev/null && kubectl get --kubeconfig=${KUBECONFIG} --raw=/api/v1/pods > ${LOG_DIR}/kubelet.out
elif [[ -f /etc/systemd/system/kubelet.service ]]; then
KUBECONFIG=`grep kubeconfig /etc/systemd/system/kubelet.service | awk '{print $2}'`
Expand Down

0 comments on commit 38065c4

Please sign in to comment.