Selaa lähdekoodia

Add newline to promote/demote message

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 3386e3570a1251bbea5302d8b8e639aaf68436c3)
Tonis Tiigi 9 vuotta sitten
vanhempi
commit
bbc214fa9b
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      api/client/node/demote.go
  2. 1 1
      api/client/node/promote.go

+ 1 - 1
api/client/node/demote.go

@@ -33,7 +33,7 @@ func runDemote(dockerCli *client.DockerCli, flags *pflag.FlagSet, args []string)
 		}); err != nil {
 			return err
 		}
-		fmt.Fprintf(dockerCli.Out(), "Manager %s demoted in the swarm.", id)
+		fmt.Fprintf(dockerCli.Out(), "Manager %s demoted in the swarm.\n", id)
 	}
 
 	return nil

+ 1 - 1
api/client/node/promote.go

@@ -33,7 +33,7 @@ func runPromote(dockerCli *client.DockerCli, flags *pflag.FlagSet, args []string
 		}); err != nil {
 			return err
 		}
-		fmt.Fprintf(dockerCli.Out(), "Node %s promoted to a manager in the swarm.", id)
+		fmt.Fprintf(dockerCli.Out(), "Node %s promoted to a manager in the swarm.\n", id)
 	}
 
 	return nil