k8ssandra / k8ssandra-terraform

Apache License 2.0
17 stars 16 forks source link

Wrong path used in GCP init.sh script #27

Closed adejanovski closed 3 years ago

adejanovski commented 3 years ago

The gcp init command is failing with the following error:

% make init "provider=gcp"
bash /Users/adejanovski/projets/cassandra/adejanovski/k8ssandra-terraform/gcp/scripts/init.sh
Following variables are configured
TF_VAR_environment: dev
TF_VAR_name: k8ssandra
TF_VAR_region: us-central-1
TF_VAR_project_id: us-central-1/Users/adejanovski/projets/cassandra/adejanovski/k8ssandra-terraform/gcp/scripts/init.sh: line 34: /Users/adejanovski/projets/cassandra/adejanovski/k8ssandra-terraform/gcp/gcp/scripts/make_bucket.py: No such file or directory
make: *** [init] Error 1

It looks like the /gcp/ part of the path should be removed on the following line as it's already part of ${ROOT}: https://github.com/k8ssandra/k8ssandra-terraform/blob/4385cbacf2b4943119f5c13919ea38c9adff1422/gcp/scripts/init.sh#L34

┆Issue is synchronized with this Jiraserver Task by Unito ┆Issue Number: K8SSAND-478 ┆Priority: Medium