blablacar / dgr

Container build and runtime tool
Apache License 2.0
249 stars 21 forks source link

Templating in *.yml happens before merge with TEMPLATER_OVERRIDE. #181

Closed nyodas closed 8 years ago

nyodas commented 8 years ago

The templating specified in the attibutes/*.yml in a pod happens before the merge of $TEMPLATER_OVERRIDE and them.

in aci:

Users:
    bob: a

in pod:

AllowUsers: '{{range $i,$d := .sshd.Users}}{{$i}} {{end}}'
Users:
    healtcheck: a

in TEMPLATER_OVERRIDE

Users:
    yolo: a

rendered.

AllowUsers: "bob healthcheck"

Is it working as intended ?

n0rad commented 8 years ago

nop,

Nice catch. I will fix it

n0rad commented 8 years ago

fixed in v72