Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect error message when validating job #1880

Closed
sethvargo opened this issue Oct 27, 2016 · 1 comment
Closed

Incorrect error message when validating job #1880

sethvargo opened this issue Oct 27, 2016 · 1 comment

Comments

@sethvargo
Copy link
Contributor

Nomad version

Nomad v0.5.0-dev ('d8e2a33802e1ef2adc3f74d0645e550177157115')

Issue

Given an invalid job file which omits the job name, the error message is not valid.

Reproduction steps

  1. Run the job file below (nomad validate example.nomad works too)

  2. The error will be:

    Error getting job struct: error parsing 'job': only one 'job' block allowed
    
  3. The actual error is that I didn't specify a name for the job

Job file (if appropriate)

job {}
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants