File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
gcp_cloud_function_sql_export Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1919
2020cd " $srcdir "
2121
22- project=" $( gcloud config list --format=" value(core.project)" ) "
23- region=" $( gcloud config list --format=" value(compute.region)" ) "
24- region=" ${region:- ${GOOGLE_REGION:- europe-west1} } " # not available in all regions yet
22+ # needed to define the $service_account further down
23+ project=" ${CLOUDSDK_CORE_PROJECT:- $(gcloud config list --format=" value(core.project)" )} "
24+
25+ region=" $( gcloud config list --format=" value(compute.region)" 2>&1 || :) "
26+ region=" ${CLOUDSDK_COMPUTE_REGION:- ${region:- europe-west1} } " # not available in all regions yet
2527
2628name=" cloud-sql-backups"
2729topic=" cloud-sql-backups"
You can’t perform that action at this time.
0 commit comments