Skip to content

Commit

Permalink
Fix in dashboard creation
Browse files Browse the repository at this point in the history
Change-Id: Ie3f7942811c3b401e9175a32b327ac9e7fa65aa3
  • Loading branch information
AVMarkin committed Nov 29, 2023
1 parent 9c3defc commit 37ffe29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcp/workload-vm/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fi

# Check if index.html exists in the bucket. If so - create and upload dashboard.json
gcs_base_path_public=$(curl -H Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/attributes/gcs_base_path_public -s --fail)
create_dashboard_url=$(curl -H Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/attributes/create_dashboard_url-s --fail)
create_dashboard_url=$(curl -H Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/attributes/create_dashboard_url -s --fail)
if [[ $exitcode -eq 0 && -n "$gcs_base_path_public" && -n "$create_dashboard_url" ]]; then
echo "{\"dashboardUrl\":\"$create_dashboard_url\"}" > dashboard.json
echo "Created dashboard.json with cloning url: $create_dashboard_link"
Expand Down

0 comments on commit 37ffe29

Please sign in to comment.