Skip to content

Commit

Permalink
website: fix example json job
Browse files Browse the repository at this point in the history
Can't use the string syntax in json.

Also fixes typo in curl example command.

Signed-off-by: Michael McCracken <[email protected]>
  • Loading branch information
mikemccracken committed Jan 18, 2018
1 parent f975128 commit 58a270c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/source/api/json-jobs.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Below is the JSON representation of the job outputted by `$ nomad init`:
"TLSSkipVerify": false,
"CheckRestart": {
"Limit": 3,
"Grace": "30s",
"Grace": 30000000000,
"IgnoreWarnings": false
}
}]
Expand Down Expand Up @@ -114,7 +114,7 @@ Below is the JSON representation of the job outputted by `$ nomad init`:
The example JSON could be submitted as a job using the following:

```text
$ curl -XPUT @d example.json http://127.0.0.1:4646/v1/job/example
$ curl -XPUT -d @example.json http://127.0.0.1:4646/v1/job/example
{
"EvalID": "5d6ded54-0b2a-8858-6583-be5f476dec9d",
"EvalCreateIndex": 12,
Expand Down

0 comments on commit 58a270c

Please sign in to comment.