Skip to content

Commit

Permalink
docs: fix example for nomad job validate
Browse files Browse the repository at this point in the history
We haven't been able to validate inside driver config stanzas ever since
the move to task driver plugins. 😭
  • Loading branch information
schmichael committed Apr 20, 2022
1 parent dd6c9aa commit d03714a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions website/content/docs/commands/job/validate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,13 @@ Defaults to true.

## Examples

Validate a job with invalid syntax:
Validate a JSON job with invalid syntax:

```shell-session
$ nomad job validate example.nomad
$ nomad job validate -json example.json
Job validation errors:
1 error(s) occurred:
* group "cache" -> task "redis" -> config: 1 error(s) occurred:
* field "image" is required
1 error occurred:
* Missing job datacenters
```

Validate a job that has a configuration that causes warnings:
Expand Down

0 comments on commit d03714a

Please sign in to comment.