Prevent using env templates with signals
This commit is contained in:
parent
9099371a42
commit
b1c65ca390
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue