warn if controller and worker name are the same (#2773)

pull/2776/head
Irena Rindos 3 years ago committed by GitHub
parent 5ac590f305
commit af24972386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -208,6 +208,12 @@ func (c *Command) Run(args []string) int {
return base.CommandUserError
}
}
if c.Config.Controller != nil {
if c.Config.Worker.Name == c.Config.Controller.Name {
c.UI.Error("Controller and worker cannot be configured with the same name.")
return base.CommandUserError
}
}
}
if c.Config.DefaultMaxRequestDuration != 0 {

Loading…
Cancel
Save