Skip to content

Commit

Permalink
Fix up cname handling for core triton services
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Wilson committed Feb 9, 2018
1 parent 74295e5 commit 0dd6410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cns-hook
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

function getservice {
local vmuuid="$(dig +short txt "${domain}" @8.8.8.8 | head -1 | sed 's/"//g')"
local vmuuid="$(dig +short txt "${domain}" @8.8.8.8 | tail -1 | sed 's/"//g')"
if [ "a$vmuuid" == "a" ]; then
echo "ERROR: ${domain} does not appear to be a CNS name or CNAME to a CNS name" >&2
exit 1
Expand Down

0 comments on commit 0dd6410

Please sign in to comment.