瀏覽代碼

Merge pull request #23688 from tonistiigi/nl

Add newline to promote/demote message
Tibor Vass 9 年之前
父節點
當前提交
82c9410c41
共有 2 個文件被更改,包括 2 次插入2 次删除
  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