Skip to content

fix: Hardcode us-central1 instead of global when fetching glossaries#6968

Merged
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
shimonp21:fix_gcp_glossaries
Jan 23, 2023
Merged

fix: Hardcode us-central1 instead of global when fetching glossaries#6968
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
shimonp21:fix_gcp_glossaries

Conversation

@shimonp21
Copy link
Copy Markdown
Contributor

Closes: #6965

Fixes the error:

code = InvalidArgument desc = Empty 'parent'.; The 'global' location is not allowed in this context.

us-central1 is the only region where glossaries can be created.
https://cloud.google.com/translate/docs/advanced/glossary#create-glossary

2:35PM ERR table resolver finished with error error="rpc error: code = InvalidArgument desc = Empty 'parent'.; Invalid location name. Unsupported location 'us-east1'. Must be 'us-central1' or 'global'." client=project:cq-playground module=gcp-src table=gcp_translate_glossaries

@shimonp21 shimonp21 added the automerge Automatically merge once required checks pass label Jan 19, 2023
@erezrokah
Copy link
Copy Markdown
Member

@shimonp21 #6971 should fix the gen issue

@kodiakhq kodiakhq bot merged commit 0d76c62 into cloudquery:main Jan 23, 2023
kodiakhq bot pushed a commit that referenced this pull request Jan 24, 2023
🤖 I have created a release *beep* *boop*
---


## [7.2.1](plugins-source-gcp-v7.2.0...plugins-source-gcp-v7.2.1) (2023-01-24)


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.28.0 ([#7009](#7009)) ([12ac005](12ac005))
* **gcp-project-policies:** Use correct API to get Policy v3, fix policy 2.1 query ([#7053](#7053)) ([2f17a4d](2f17a4d))
* Hardcode `us-central1` instead of `global` when fetching glossaries ([#6968](#6968)) ([0d76c62](0d76c62))
* **services:** Update GCP Services ([#7057](#7057)) ([7cc65a4](7cc65a4))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(gcp): gcp_translate_glossaries fails with an error

3 participants