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

[GCP] Incorrect output of env variables #26

Open
adejanovski opened this issue May 25, 2021 · 1 comment
Open

[GCP] Incorrect output of env variables #26

adejanovski opened this issue May 25, 2021 · 1 comment
Labels
zh:Icebox Issues in the ZenHub pipeline 'Icebox'

Comments

@adejanovski
Copy link

adejanovski commented May 25, 2021

${TF_VAR_region} is used twice when logging the configured env variables instead of ${TF_VAR_project_id} for the second one:

printf "This step requires to export the the following variables \nTF_VAR_environment: %s \nTF_VAR_name: %s \nTF_VAR_region: %s \nTF_VAR_project_id: %s" "${TF_VAR_environment}" "${TF_VAR_name}" "${TF_VAR_region}" "${TF_VAR_region}"
exit 1
else
printf "Following variables are configured \nTF_VAR_environment: %s \nTF_VAR_name: %s \nTF_VAR_region: %s \nTF_VAR_project_id: %s" "${TF_VAR_environment}" "${TF_VAR_name}" "${TF_VAR_region}" "${TF_VAR_region}"

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

@adejanovski
Copy link
Author

Also, it would be nice to have an additional newline at the end of these loggings as it currently prints the next loggings on the same line:

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-1from: can't read /var/mail/google.cloud

@adejanovski adejanovski added the zh:Icebox Issues in the ZenHub pipeline 'Icebox' label Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
zh:Icebox Issues in the ZenHub pipeline 'Icebox'
Projects
None yet
Development

No branches or pull requests

1 participant