Skip to content

Commit

Permalink
Fix namespace-less cloud registrar (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi committed Nov 9, 2023
1 parent 54972b6 commit b436eb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validator/bin/automate
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Automation of tools using PubSub triggers.
#

UDMI_PREFIX=${UDMI_NAMESPACE}~
[[ -n $UDMI_NAMESPACE ]] && UDMI_PREFIX="${UDMI_NAMESPACE}~"

PUBSUB_FILE=pubsub.json
MESSAGE_FILE=message.json
Expand All @@ -13,7 +13,7 @@ MODEL_SUBDIR=udmi/
CONFIG_FILE=registrar_config.json
REGISTRAR_TRIGGER=run-registrar

SUBSCRIPTION=${UDMI_PREFIX#\~}source_repo-udmis
SUBSCRIPTION=${UDMI_PREFIX}source_repo-udmis
echo Pulling from PubSub subscription $SUBSCRIPTION

export GCP_PROJECT=$(curl -s "http://metadata.google.internal/computeMetadata/v1/project/project-id" -H "Metadata-Flavor: Google" || true)
Expand All @@ -38,7 +38,7 @@ else
fi

git config --global user.email $GCP_SERVICE_ACCOUNT
git config --global user.name "UDMIS automation runner $UDMI_PREFIX"
git config --global user.name "UDMIS automation runner ${UDMI_PREFIX#\~}"

echo

Expand Down

0 comments on commit b436eb6

Please sign in to comment.