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

Fix - yaml invalid string #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ludogayet
Copy link

Hi,

I'm having an error when i try using the module and following the ReadMe. (dbt 1.3.0, tnightengale/dbt_meta_testing 0.3.6)
dbt run-operation required_docs --args "{'models': '$(dbt list -m state:modified --state ../../config/)'}"
Produce :
09:27:48 Running with dbt=1.3.0
09:27:48 The YAML provided in the --vars argument is not valid.
09:27:48 Encountered an error while running operation: Runtime Error unacceptable character #x001b: special characters are not allowed in "<unicode string>", position 12

I think the right way of calling it is, based on what i understand from the dbt doc is :
dbt run-operation required_docs --args '{models: $(dbt list -m state:modified --state ../../config/)}'
And this time i get normal output
09:27:06 Running with dbt=1.3.0
09:27:07 Checking required_docs config...
09:27:07 Success: required_docs passed.

@tnorlund-dsc
Copy link

Agreed. This is how I've applied args/vars in the past.

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.

2 participants