Prevent using env templates with signals

This commit is contained in:
Michael Schurter 2017-07-25 16:34:41 -07:00
parent 9099371a42
commit b1c65ca390
1 changed files with 3 additions and 0 deletions

View File

@ -3338,6 +3338,9 @@ func (t *Template) Validate() error {
if t.ChangeSignal == "" {
multierror.Append(&mErr, fmt.Errorf("Must specify signal value when change mode is signal"))
}
if t.Envvars {
multierror.Append(&mErr, fmt.Errorf("cannot use signals with env var templates"))
}
default:
multierror.Append(&mErr, TemplateChangeModeInvalidError)
}