Skip to content

Commit

Permalink
Try adding extra route to metadata server (#337)
Browse files Browse the repository at this point in the history
* Try adding extra route

* Add another route

---------

Co-authored-by: Michael Franklin <illusional@users.noreply.github.com>
  • Loading branch information
illusional and illusional authored May 26, 2024
1 parent 6f76e36 commit a9a79d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions batch/batch/cloud/gcp/worker/metadata_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def create_app(
web.get('/', root),
web.get('/computeMetadata/v1/project/project-id', project_id),
web.get('/computeMetadata/v1/project/numeric-project-id', numeric_project_id),
web.get('/computeMetadata/v1/instance/service-accounts', service_accounts),
web.get('/computeMetadata/v1/instance/service-accounts/', service_accounts),
web.get('/computeMetadata/v1/instance/service-accounts/{gsa}', user_service_account),
web.get('/computeMetadata/v1/instance/service-accounts/{gsa}/', user_service_account),
web.get('/computeMetadata/v1/instance/service-accounts/{gsa}/email', user_email),
web.get('/computeMetadata/v1/instance/service-accounts/{gsa}/token', user_token),
Expand Down

0 comments on commit a9a79d2

Please sign in to comment.