Skip to content

Commit 02289e1

Browse files
committed
imp: touch up the -S exec output
1 parent e6459a1 commit 02289e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nomad-exec.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ if [ -z "${ALLOC:-}" ]; then
161161
for TAG in $TAGS; do
162162
echo " $SERVICE:$TAG"
163163
if [ "${CONSUL_TAG:-}" == "$TAG" ]; then
164+
echo
165+
echo "Found requested CONSUL_TAG: \"$CONSUL_TAG\""
166+
echo "Execing to CONSUL_TAG associated Nomad allocation: $SHOW_ALLOC"
167+
echo
164168
ALLOC="$SHOW_ALLOC"
165169
break 3
166170
fi
@@ -173,7 +177,7 @@ if [ -z "${ALLOC:-}" ]; then
173177

174178
if [ -z "${ALLOC:-}" ]; then
175179
if [ -n "${CONSUL_TAG:-}" ]; then
176-
echo "warning: '$CONSUL_TAG' does not match any specified tags, falling back to alloc picker"
180+
echo "Warning: \"$CONSUL_TAG\" does not match any NOMAD_ALLOC_ID associated Consul service tags, falling back to alloc picker"
177181
fi
178182
choose \
179183
"allocation" \

0 commit comments

Comments
 (0)