Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix namespace-less cloud registrar #759

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading