-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
hcc/jirastage/acceptedtheme/template/renderRelates to the rendering of templatesRelates to the rendering of templatestype/bug
Description
Hi there!
We updated to nomad-pack version 0.1.2 and now we're getting the error:
Job 'example-job' in pack deployment 'example' registered successfully
Pack successfully deployed. Use ./packs/example to manage this deployed instance with plan, stop, destroy, or info
! Failed To Render Output Template
! Error: failed to render outputs.tpl: template: outputs.tpl:1:6: executing "outputs.tpl" at <.my.job_name>: nil pointer evaluating parser.PackContextable.job_name
! Context:
! Pack Name: example
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1
Meanwhile the deployment is going well.
The problem does not occur when calling nomad-pack render --parser-v1, but does occur when calling nomad-pack run --parser-v1
This has been present in nomad-pack since version 0.1.0, in which the --parser-v1 flag appeared.
Сontents of the outputs.tpl file:
[[ .my.job_name ]]:[[ .my.version ]] has been successfully deployed.
There are [[ .my.count ]] instances of your job now running on Nomad in [[ .my.namespace ]] namespace.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
hcc/jirastage/acceptedtheme/template/renderRelates to the rendering of templatesRelates to the rendering of templatestype/bug