From 068172aa1afec6d4ab70c56f868f1106e7e84ec3 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Tue, 23 Apr 2019 15:20:06 +0200 Subject: [PATCH] fix output order for logs --- cli/commands.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cli/commands.go b/cli/commands.go index 173e786e..d2c3906b 100644 --- a/cli/commands.go +++ b/cli/commands.go @@ -117,11 +117,6 @@ func CreateCluster(c *cli.Context) error { } createClusterDir(c.String("name")) - log.Printf("SUCCESS: created cluster [%s]", c.String("name")) - log.Printf(`You can now use the cluster with: - -export KUBECONFIG="$(%s get-kubeconfig --name='%s')" -kubectl cluster-info`, os.Args[0], c.String("name")) // worker nodes if c.Int("workers") > 0 { @@ -145,6 +140,13 @@ kubectl cluster-info`, os.Args[0], c.String("name")) fmt.Printf("Created worker with ID %s\n", workerID) } } + + log.Printf("SUCCESS: created cluster [%s]", c.String("name")) + log.Printf(`You can now use the cluster with: + +export KUBECONFIG="$(%s get-kubeconfig --name='%s')" +kubectl cluster-info`, os.Args[0], c.String("name")) + return nil }