Apply suggestions from code review
Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
This commit is contained in:
parent
219dc05541
commit
76c8a11b31
|
@ -5416,7 +5416,7 @@ func (t *Task) Validate(ephemeralDisk *EphemeralDisk, jobType string, tgServices
|
|||
if taskKind.IsConnect() {
|
||||
// This task is a Connect proxy so it should not have service stanzas
|
||||
if len(t.Services) > 0 {
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("Connect proxy task should not have service stanza in it"))
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("Connect proxy task must not have a service stanza"))
|
||||
}
|
||||
if t.Leader {
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("Connect proxy task must not have leader set"))
|
||||
|
|
Loading…
Reference in a new issue