Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Infrakit template command different from utils init #729

Open
@wongwill86

Description

@wongwill86

It seems that processing template actions via infrakit template is different from infrakit utils init w.r.t. passing in vars.

For example:

{{ include (cat (var `filename`) `.txt` | nospace ) | jsonDecode }}

processes differently when using the commands:

  • infrakit template --var filename=... target.json
    • include action is inside target.json.
  • infrakit util init --var filename=... target.json
    • include action is inside the script specified in the InitScriptTemplateURL parameter of target.json

Example repo here

I would expect that both commands does the var replacement from the specified --var in the command line.

However, I observe that only the template command correctly does the var replacement and the utils init command results in an error:

include: open /home/ubuntu/{{var`filename`}}.txt: no such file or directory

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions