add warning for when agent arg is supplied without agents being created

This commit is contained in:
iwilltry42 2019-11-07 15:28:14 +01:00
parent 8079d7d2be
commit 10179f8555

View File

@ -131,6 +131,9 @@ func CreateCluster(c *cli.Context) error {
}
if c.IsSet("agent-arg") {
if c.Int("workers") < 1 {
log.Warnln("--agent-arg supplied, but --workers is 0, so no agents will be created")
}
k3AgentArgs = append(k3AgentArgs, c.StringSlice("agent-arg")...)
}