Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve custom dbt transformation handling profiles.yml #4734

Closed
ChristopheDuong opened this issue Jul 13, 2021 · 1 comment · Fixed by #5076
Closed

Improve custom dbt transformation handling profiles.yml #4734

ChristopheDuong opened this issue Jul 13, 2021 · 1 comment · Fixed by #5076
Labels
area/platform issues related to the platform type/enhancement New feature or request

Comments

@ChristopheDuong
Copy link
Contributor

ChristopheDuong commented Jul 13, 2021

Tell us about the problem you're trying to solve

As follow up to #4721, do proper yaml parsing/extract to be used in

PROFILE_NAME=$(grep -e "profile:" < "${CWD}/git_repo/dbt_project.yml" | sed -E "s/profile: *['\"]?([^'\"]*)['\"]?/\1/")

Describe the solution you’d like

we should write (a python?) script that uses a yaml parser to load the dbt_project.yml file and output the name of the profile being used, something like: load yaml file; print(config.get("profile")) it would be more robust

@marcosmarxm
Copy link
Member

Python yaml is native so probably should be easy to do this! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform type/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants