Skip to content

fix: Request correct config format (YAML) from provider#968

Merged
disq merged 3 commits intocloudquery:mainfrom
disq:fix/yaml-request-correct-config-format
Jun 22, 2022
Merged

fix: Request correct config format (YAML) from provider#968
disq merged 3 commits intocloudquery:mainfrom
disq:fix/yaml-request-correct-config-format

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Jun 21, 2022

Otherwise ConfigureProvider is called with no format, which would default to HCL.

init/config providers format also moved from map to list of providers.

@disq disq requested review from a team and roneli June 21, 2022 12:29
@disq disq force-pushed the fix/yaml-request-correct-config-format branch from 26492d1 to 2a46cd7 Compare June 21, 2022 13:17
@disq disq marked this pull request as draft June 21, 2022 13:17
@disq disq marked this pull request as ready for review June 21, 2022 15:21
Copy link
Copy Markdown
Contributor

@roneli roneli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I guess, maybe, add a test to the parser?

@erezrokah
Copy link
Copy Markdown
Member

add a test to the parser?

I can follow up with another PR with tests as I added some in https://github.com/cloudquery/cloudquery/pull/969/files#diff-0f1a4fd4caa8778f443d8cb2b88e52020357ceac4ba0302c6d844aa784bf36e7R112

@disq
Copy link
Copy Markdown
Member Author

disq commented Jun 22, 2022

Yeah I'll merge this and we'll follow up with tests later

@disq disq merged commit 999b68d into cloudquery:main Jun 22, 2022
@disq disq deleted the fix/yaml-request-correct-config-format branch June 22, 2022 07:59
kodiakhq bot pushed a commit that referenced this pull request Jun 22, 2022
🤖 I have created a release *beep* *boop*
---


## [0.27.0](v0.26.4...v0.27.0) (2022-06-22)


### ⚠ BREAKING CHANGES

* Remove drift (#887)

### Features

* Remove drift ([#887](#887)) ([3d387bd](3d387bd))
* Add YAML configuration support ([#887](#887)) ([3d387bd](3d387bd))

### Bug Fixes

* Default alias to name ([#966](#966)) ([706447c](706447c))
* Support modules tag in config ([#965](#965)) ([379344f](379344f))
* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.12.1 ([#972](#972)) ([1f871e9](1f871e9))
* Request correct config format (YAML) from provider ([#968](#968)) ([999b68d](999b68d))

---
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants