Fixed grammer of comment

This commit is contained in:
Diptanu Choudhury
2015-10-30 21:06:56 -07:00
parent 93cdcb5ac2
commit 0d17430306
3 changed files with 2 additions and 4 deletions

View File

@@ -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.

View File

@@ -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)
}

View File

@@ -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)