Browse code

Add newline to promote/demote message

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 3386e3570a1251bbea5302d8b8e639aaf68436c3)

Tonis Tiigi authored on 2016/06/18 02:58:11
Showing 2 changed files
... ...
@@ -33,7 +33,7 @@ func runDemote(dockerCli *client.DockerCli, flags *pflag.FlagSet, args []string)
33 33
 		}); err != nil {
34 34
 			return err
35 35
 		}
36
-		fmt.Fprintf(dockerCli.Out(), "Manager %s demoted in the swarm.", id)
36
+		fmt.Fprintf(dockerCli.Out(), "Manager %s demoted in the swarm.\n", id)
37 37
 	}
38 38
 
39 39
 	return nil
... ...
@@ -33,7 +33,7 @@ func runPromote(dockerCli *client.DockerCli, flags *pflag.FlagSet, args []string
33 33
 		}); err != nil {
34 34
 			return err
35 35
 		}
36
-		fmt.Fprintf(dockerCli.Out(), "Node %s promoted to a manager in the swarm.", id)
36
+		fmt.Fprintf(dockerCli.Out(), "Node %s promoted to a manager in the swarm.\n", id)
37 37
 	}
38 38
 
39 39
 	return nil