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

Error on set_composer_variables.sh #11

Closed
msserpa opened this issue Oct 19, 2021 · 1 comment
Closed

Error on set_composer_variables.sh #11

msserpa opened this issue Oct 19, 2021 · 1 comment

Comments

@msserpa
Copy link

msserpa commented Oct 19, 2021

I get the following error when executing set_composer_variables script on composer 1.17.2 airflow 2.12:

ERROR: (gcloud.composer.environments.run) argument SUBCOMMAND: Must be specified.
Usage: gcloud composer environments run (ENVIRONMENT : --location=LOCATION) SUBCOMMAND [SUBCOMMAND_NESTED] [optional flags] [-- CMD_ARGS ...]
optional flags may be --help | --location

I fixed it by remove the extra '--' as follows:

- --location "${COMPOSER_REGION}" variables -- --set "${i}" "${variables[$i]}"
+ --location "${COMPOSER_REGION}" variables -- set "${i}" "${variables[$i]}"

@kingman
Copy link
Collaborator

kingman commented Jun 1, 2022

Fix in PR

@kingman kingman closed this as completed Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants