-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-var-file argument has no effect #9588
Comments
Looks like it just needs to be passed in, according to this test Line 155 in b67d9ec
|
Thanks for reporting the bug! That's embarrassing 🤦 . We'll follow up with a fix soon. |
Apparently, we missed passing VarFile argument, so var files were ignored. Fixes #9588
Thanks @cpcloud again. I have merged the fix, and it should be out in 1.0.1! |
Apparently, we missed passing VarFile argument, so var files were ignored. Fixes #9588
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Output from
nomad version
Operating system and Environment details
OS: NixOS
Issue
The
-var-file
argument appears to have no effect when running jobs.After digging around in the code, it looks like the code called by
nomad job run
herenomad/command/job_run.go
Line 197 in 8a66f11
varFiles
in herenomad/command/helpers.go
Line 394 in 86882df
varfiles
variable is never used in the body ofApiJobWithArgs
so the variables never get interpolated in.Reproduction steps
Make a file with a
command
variable defined, this can be any string but I set it to a valid executable path.Run the job file below:
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: