Skip to content

Commit

Permalink
triton-dehydrated#26 instances in verifying state can't provision cer…
Browse files Browse the repository at this point in the history
…ts (#27)
  • Loading branch information
bahamat authored Nov 1, 2019
1 parent 852e00e commit 654e646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cns-hook-util
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function getservice {
function verifyvm {
local domain="${1}" vmuuid="${2}"

if ! dig +short txt "${domain}" @8.8.8.8 | sed 's/"//g' | grep -- "^${vmuuid}" >/dev/null; then
if ! dig +short txt "${domain}" @8.8.8.8 | sed 's/"//g' | grep -w -- "${vmuuid}" >/dev/null; then
echo "ERROR: ${domain} does not appear to be a CNS name or CNAME to a CNS name for VM ${vmuuid}" >&2
exit 1
fi
Expand Down

0 comments on commit 654e646

Please sign in to comment.