Commit f2fcf659 authored by Alvaro [Andor]'s avatar Alvaro [Andor] Committed by GitHub

Fix renaming order shown on terminal

When finishing a rolling update, a message is shown : 'Renaming oldRc to newRc' In my case that'd be: 'Renaming nginx to nginx-df8d9fafc5007d83968cd37c8353d52e' That naming order is incorrect, as the new name is temporary, and the final name should be the old one
parent 4f69d7ed
......@@ -520,7 +520,7 @@ func (r *RollingUpdater) cleanupWithClients(oldRc, newRc *api.ReplicationControl
if err := r.rcClient.ReplicationControllers(r.ns).Delete(oldRc.Name, nil); err != nil {
return err
}
fmt.Fprintf(config.Out, "Renaming %s to %s\n", oldRc.Name, newRc.Name)
fmt.Fprintf(config.Out, "Renaming %s to %s\n", newRc.Name, oldRc.Name)
return Rename(r.rcClient, newRc, oldRc.Name)
case PreserveRollingUpdateCleanupPolicy:
return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment