Skip to content

Commit

Permalink
make sure we show nomad errors when trying to run a job
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Oct 13, 2020
1 parent b3b2d37 commit a1daaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/run-nomad-job.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ writeShellScriptBin "nomad-run" ''
nix copy --to "$cache&secret-key=secrets/nix-secret-key-file" ${json}
jq --arg token "$CONSUL_HTTP_TOKEN" '.Job.ConsulToken = $token' < ${json} \
| curl -f \
| curl -s -q \
-X POST \
-H "X-Nomad-Token: $NOMAD_TOKEN" \
-H "X-Vault-Token: $(vault print token)" \
Expand Down

0 comments on commit a1daaf4

Please sign in to comment.