mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-10 16:00:19 -04:00
cli: upgrade apply uses correct measurements key (#1223)
Apply still used the obsolete upgrade key's measurements. The new, desired behavior is to use the Provider's measurements key
This commit is contained in:
parent
91c251090f
commit
87fdb47caa
2 changed files with 18 additions and 1 deletions
|
@ -149,7 +149,7 @@ func (u *upgradeApplyCmd) handleImageUpgrade(ctx context.Context, conf *config.C
|
|||
return fmt.Errorf("parsing version from image short path: %w", err)
|
||||
}
|
||||
|
||||
err = u.upgrader.UpgradeImage(ctx, imageReference, imageVersion.Version, conf.Upgrade.Measurements)
|
||||
err = u.upgrader.UpgradeImage(ctx, imageReference, imageVersion.Version, conf.GetMeasurements())
|
||||
if err != nil {
|
||||
return fmt.Errorf("upgrading image: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue