Apply suggestions from code review

Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
This commit is contained in:
Preetha 2019-08-12 17:03:30 -05:00 committed by GitHub
parent 219dc05541
commit 76c8a11b31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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