From f8a57f28a34c27883bc8b5f4a5c9d7836437d793 Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Wed, 23 Nov 2022 21:13:13 +0100 Subject: [PATCH] Fix upgrade under V2 Fix a typo that was preventing upgrades under V2. --- internal/pkg/agent/application/coordinator/coordinator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/agent/application/coordinator/coordinator.go b/internal/pkg/agent/application/coordinator/coordinator.go index 48a476a5164..e6dbe44c037 100644 --- a/internal/pkg/agent/application/coordinator/coordinator.go +++ b/internal/pkg/agent/application/coordinator/coordinator.go @@ -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 }