File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 rm -rf meraki
3030 - name : Regenerate Python Library
3131 run : |
32- poetry run python generator/generate_library.py -g true -v ${{ github.event.inputs.library_version }} -av ${{ github.event.inputs.api_version }} -o ${{ secrets.TEST_ORG_ID }} -k ${{ secrets.TEST_ORG_API_KEY }}
32+ poetry run python generator/generate_library.py -g true -v ${{ github.event.inputs.library_version }} -a ${{ github.event.inputs.api_version }} -o ${{ secrets.TEST_ORG_ID }} -k ${{ secrets.TEST_ORG_API_KEY }}
3333 - name : Set new version for Poetry
3434 run : |
3535 sed -i "s/^version = \".*\"/version = \"${{ github.event.inputs.library_version }}\"/" pyproject.toml
Original file line number Diff line number Diff line change 1515This script generates the Meraki Python library using either the public OpenAPI specification, or, with an API key & org
1616ID as inputs, a specific dashboard org's OpenAPI spec.
1717
18- === USAGE === python[3] generate_library.py [-o <org_id>] [-k <api_key>] [-v <version_number>] [-av
18+ === USAGE === python[3] generate_library.py [-o <org_id>] [-k <api_key>] [-v <version_number>] [-a
1919<api_version_number>] [-g <is_called_from_github_action>]
2020
2121API key can, and is recommended to, be set as an environment variable named MERAKI_DASHBOARD_API_KEY."""
@@ -752,7 +752,7 @@ def main(inputs):
752752 is_github_action = False
753753
754754 try :
755- opts , args = getopt .getopt (inputs , "ho:k:v:av :g:" )
755+ opts , args = getopt .getopt (inputs , "ho:k:v:a :g:" )
756756 except getopt .GetoptError :
757757 print_help ()
758758 sys .exit (2 )
@@ -766,7 +766,7 @@ def main(inputs):
766766 api_key = arg
767767 elif opt == "-v" :
768768 version_number = arg
769- elif opt == "-av " :
769+ elif opt == "-a " :
770770 api_version_number = arg
771771 elif opt == "-g" :
772772 if arg .lower () == "true" :
You can’t perform that action at this time.
0 commit comments