Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #248 from deniseschannon/upgradefix
Browse files Browse the repository at this point in the history
Confirm previous upgrade when starting the next upgrade
  • Loading branch information
ibuildthecloud committed Apr 27, 2017
2 parents b80ddd8 + 8b12456 commit 88b67b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rancher/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,17 @@ func (r *RancherService) up(create bool) error {
}
}

if service.State == "upgraded" {
service, err = r.context.Client.Service.ActionFinishupgrade(service)
if err != nil {
return err
}
err = r.Wait(service)
if err != nil {
return err
}
}

service, err = r.upgrade(service, r.context.ForceUpgrade, r.context.Args)
if err != nil {
return err
Expand Down

0 comments on commit 88b67b0

Please sign in to comment.