Skip to content

Propagate -hcl2-strict=false into job plan output #23656

Open
@jblachly

Description

Proposal

I need to use the flag -hcl2-strict=false because of the way I've organized my variables (staging.vars, production.vars shared across a number of different job files) -- see #16136 . However, when I run nomad job plan -hcl2-strict=false -var-file=..., the output informs me:

To submit the job with version verification run:

nomad job run -check-index 463904 -var-file="staging.vars" myjobfile.hcl

When copy-pasting (since there's a check-index in there), I have to manually add -hcl2-strict=false every time.

I propose that this flag, if included on the command line of job plan, should be propagated into this output.

Use-cases

vide supra

Attempted Solutions

n/a

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions