From 10179f8555c454ab43154a8b64a451bcbbc8be9b Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Thu, 7 Nov 2019 15:28:14 +0100 Subject: [PATCH] add warning for when agent arg is supplied without agents being created --- cli/commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/commands.go b/cli/commands.go index 5508cf60..11874be9 100644 --- a/cli/commands.go +++ b/cli/commands.go @@ -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")...) }