plan_job does not use the diff flag correctly
jeteon opened this issue · 1 comments
jeteon commented
According to the docs the Nomad API expects a Diff
parameter to be optionally supplied in the payload of the request like so:
{ "Job": "...", "Diff": true, "PolicyOverride": false }
However the code adds this as a parameter on the URL instead:
Lines 192 to 206 in 1e929b9
This results in you not being able to actually request a diff on a plan by calling nomad.job_plan(id, job, diff=True)
since it is not put into the body and thus ignored by the Nomad server.