Check if ${NOMAD_DC} is undefined or unset 74/65274/5 v0.57.1
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 2 Sep 2020 04:27:35 +0000 (14:27 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 2 Sep 2020 23:00:42 +0000 (09:00 +1000)
commit50b6737cb8b73ea2311b2992e7dfd6611f60b07c
treeeb9e138388927e70d9c37691831f751d551aa173
parentc80aa5b36c3a2d08dc47d9c5d1cc2366cd161863
Check if ${NOMAD_DC} is undefined or unset

The condition in the commit 31a4b7fc00fe90494b6efb512ad0f1db02481ff3
should instead check when the environment variable $NOMAD_DC is not
defined or unset, this avoids the script from exiting without capturing
instance metadata.

Issue: RELENG-3142
Change-Id: I80240d77abfacb59c81e41e63629468350e24b7b
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/fix-capture-instance-metadata-script-e130cc297c189976.yaml [new file with mode: 0644]
shell/capture-instance-metadata.sh