-
Notifications
You must be signed in to change notification settings - Fork 199
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
Kadet inputs with plain output type and dict objects fail to compile #445
Comments
|
Correct, it's an edge case/hack. But that is not the source causing this issue.
Correct as well, but I'd argue Kadet is one of the more versatile input types we have now and it would be a shame to not support this behavior in only one output type.
How come? I'd imagine A bytes output would also be a legitimate fix for this use case, but I still would expect my |
Fix issue #445: Explicitly create directories for all outputted CompiledFile objects.
Closing this as the initial bug of directories not being created has been fixed in #446. |
Describe the bug/feature
When Kadet is used in conjunction with
plain
output type it fails to write the output to a file.The issue is in CompiledFile.write as it assumes that data passed to it is strings but that's not always the case (especially if in Kadet where you can define the exact outputted object as a python dictionary).
Solution: Convert data explicitly to str in write() (PR coming soon).
To replicate:
Kapitan config:
Kadet init.py:
Stacktrace:
The text was updated successfully, but these errors were encountered: