Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix: correct scale message after scale operations (#1977)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis authored Sep 18, 2019
1 parent 262f8e9 commit 44bc4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/scale.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ func (sc *scaleCmd) run(cmd *cobra.Command, args []string) error {
deploymentSuffix := random.Int31()

if sc.nodes != nil {
sc.logger.Infof("Nodes in pool %s before scaling:\n", sc.agentPoolToScale)
sc.logger.Infof("Nodes in pool '%s' before scaling:\n", sc.agentPoolToScale)
operations.PrintNodes(sc.nodes)
}
_, err = sc.client.DeployTemplate(
Expand All @@ -508,7 +508,7 @@ func (sc *scaleCmd) run(cmd *cobra.Command, args []string) error {
nodes, err := operations.GetNodes(sc.client, sc.logger, sc.apiserverURL, sc.kubeconfig, time.Duration(5)*time.Minute, sc.agentPoolToScale, sc.newDesiredAgentCount)
if err == nil && nodes != nil {
sc.nodes = nodes
sc.logger.Infof("Nodes in pool %s cluster after scaling:\n", sc.agentPoolToScale)
sc.logger.Infof("Nodes in pool '%s' after scaling:\n", sc.agentPoolToScale)
operations.PrintNodes(sc.nodes)
} else {
sc.logger.Warningf("Unable to get nodes in pool %s after scaling:\n", sc.agentPoolToScale)
Expand Down

0 comments on commit 44bc4e3

Please sign in to comment.