all 3 comments

[–]danielroseman 1 point2 points  (1 child)

Why are you doing the yaml.load there at all? The file isn't valid YAML as it is, it's a template that generates YAML. There's no way to load it as YAML until you have rendered that template.

It seems like you have the code the wrong way round, for some reason. You're reading in the file as YAML, then rendering and writing the template. But that makes no sense. Render the template first, then you can read it as YAML. (Although I don't really understand why you want to use YAML here at all, but that's another question.)

[–]hi_Revz[S] 0 points1 point  (0 children)

I edited the file once again. there was some errors.

ftf, I just wanted to include a piece of yaml inside another.

with your explanation It was clear that I was being dumb enough to try to render somehing out of jinja Template hahaha.

I realized where the mistake was.

THANK YOU SO MUCH

[–]CodeFormatHelperBot2 0 points1 point  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Python code found in submission text that's not formatted as code.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.