[lxd 4.2] pongo2 template doesn't work

Hello.
I tried to make a random machine-id that should be a single newline-terminated, hexadecimal, 32-character, lowercase ID. 32 zero is an exception and not work.

My pongo file template is https://hastebin.com/disudosegi.pongo2

I don’t find the error. Probably better solution exist too…
When I try to launch my image I have this message and logs: https://hastebin.com/igizisaluc.bash

If someone have an idea.

Can you run lxc monitor --type=logging --pretty in a separate shell while starting your container, that may help see what’s up.

Intresting command. I had missed it.

https://hastebin.com/elastiwised.log

I had tested to add simple quotes around letters in the array into the pongo2 file but same error… same if I try to add simple quote around all array entries

I have found a solution using {% set arr = array(‘0’,‘1’,‘a’,‘f’) %}

Thank you Stéphane for you help :wink: