Skip to content

Avoid unbound variable error in CNI 1.4 RC1#382

Merged
mogren merged 1 commit intoaws:masterfrom
StevenACoffman:patch-1
Apr 8, 2019
Merged

Avoid unbound variable error in CNI 1.4 RC1#382
mogren merged 1 commit intoaws:masterfrom
StevenACoffman:patch-1

Conversation

@StevenACoffman
Copy link
Copy Markdown
Contributor

After upgrading to the latest release candidate, SSHing into the host machines, running as root /opt/cni/bin/aws-cni-support.sh gets the following error:

/opt/cni/bin/aws-cni-support.sh: line 35: KUBECONFIG: unbound variable

set -u will abort here so in the bracket test, see if the parameter is set and non-empty using an empty default value.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/opt/cni/bin/aws-cni-support.sh: line 35: KUBECONFIG: unbound variable
set -u will abort here so see if the parameter is set and non-empty using an empty default value.
@mogren mogren merged commit 53316cb into aws:master Apr 8, 2019
mogren pushed a commit to mogren/amazon-vpc-cni-k8s that referenced this pull request Apr 8, 2019
/opt/cni/bin/aws-cni-support.sh: line 35: KUBECONFIG: unbound variable
set -u will abort here so see if the parameter is set and non-empty using an empty default value.

Pull request aws#382

(cherry picked from commit a34eae1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants