mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Fixed grammer of comment
This commit is contained in:
@@ -104,8 +104,8 @@ job "example" {
|
||||
# Defaults to 1
|
||||
# count = 1
|
||||
|
||||
# Restart Policy - This block defines the restart policy for TaskGroups
|
||||
# attempts defines the number of restarts Nomad will do if Tasks
|
||||
# Restart Policy - This block defines the restart policy for TaskGroups,
|
||||
# the attempts value defines the number of restarts Nomad will do if Tasks
|
||||
# in this TaskGroup fails in a rolling window of interval duration
|
||||
# The delay value makes Nomad wait for that duration to restart after a Task
|
||||
# fails or crashes.
|
||||
|
||||
@@ -30,7 +30,6 @@ func Parse(r io.Reader) (*structs.Job, error) {
|
||||
|
||||
// Parse the buffer
|
||||
obj, err := hcl.Parse(buf.String())
|
||||
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error parsing: %s", err)
|
||||
}
|
||||
|
||||
@@ -992,7 +992,6 @@ func (tg *TaskGroup) Validate() error {
|
||||
|
||||
// Validate the tasks
|
||||
for idx, task := range tg.Tasks {
|
||||
|
||||
if err := task.Validate(); err != nil {
|
||||
outer := fmt.Errorf("Task %d validation failed: %s", idx+1, err)
|
||||
mErr.Errors = append(mErr.Errors, outer)
|
||||
|
||||
Reference in New Issue
Block a user