Skip to content

Commit

Permalink
Fix upgrade under V2
Browse files Browse the repository at this point in the history
Fix a typo that was preventing upgrades under V2.
  • Loading branch information
belimawr committed Nov 23, 2022
1 parent 8e9c758 commit d9f5b24
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 d9f5b24

Please sign in to comment.