Skip to content

composer/rest/get_client_id.py has has issues on giving arguments #5546

@ricconoel

Description

@ricconoel

In which file did you encounter the issue?

composer/rest/get_client_id.py

Did you change the file? If so, how?

Original:

    parser.add_argument('project_id', help='Your Project ID.')
    parser.add_argument(
        'location', help='Region of the Cloud Composer environent.')
    parser.add_argument(
        'composer_environment', help='Name of the Cloud Composer environent.')

Fixed locally:

    parser.add_argument('--project_id', help='Your Project ID.')
    parser.add_argument(
        '--location', help='Region of the Cloud Composer environent.')
    parser.add_argument(
        '--composer_environment', help='Name of the Cloud Composer environment.')

Describe the issue

When running script error shows

usage: id.py [-h] project_id location composer_environment
id.py: error: the following arguments are required: project_id, location, composer_environment

Needs to add '--' on the arguments. Issue was encountered here https://stackoverflow.com/questions/66400667

Metadata

Metadata

Assignees

Labels

api: composerIssues related to the Cloud Composer API.samplesIssues that are directly related to samples.type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions