Skip to content

Commit

Permalink
Fix upgrade under V2 (#1779)
Browse files Browse the repository at this point in the history
Fix a typo that was preventing upgrades under V2.

(cherry picked from commit ef8730a)
  • Loading branch information
belimawr authored and mergify[bot] committed Nov 24, 2022
1 parent 367cd6c commit 1e425a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/agent/application/coordinator/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (c *Coordinator) ReExec(callback reexec.ShutdownCallbackFn, argOverrides ..
// Upgrade runs the upgrade process.
func (c *Coordinator) Upgrade(ctx context.Context, version string, sourceURI string, action *fleetapi.ActionUpgrade) error {
// early check outside of upgrader before overridding the state
if c.upgradeMgr.Upgradeable() {
if !c.upgradeMgr.Upgradeable() {
return ErrNotUpgradable
}

Expand Down

0 comments on commit 1e425a2

Please sign in to comment.