a1ba068e1f
PR #14492 introduced a new check to return 0 when the `nomad job plan` command returns a diff of type `None`. But the `-diff` CLI flag was also being used to control whether the plan request should return the diff of not instead of just controlling if the diff was printed. This means that when `-diff=false` is set the response does not include any diff information, and so the new check panics. This commit fixes the problem by always requesting a diff and using the `-diff` only for controlling output, as it's currently documented.
4 lines
68 B
Plaintext
4 lines
68 B
Plaintext
```release-note:bug
|
|
cli: Fix panic on job plan when -diff=false
|
|
```
|