Skip to content

Commit

Permalink
Fix wrong spec loaded for upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
  • Loading branch information
Itxaka committed Jul 25, 2023
1 parent 3c2697a commit beb04ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func ReadInstallSpecFromConfig(c *Config) (*v1.InstallSpec, error) {

// ReadUpgradeSpecFromConfig will return a proper v1.UpgradeSpec based on an agent Config
func ReadUpgradeSpecFromConfig(c *Config) (*v1.UpgradeSpec, error) {
sp, err := ReadSpecFromCloudConfig(c, "reset")
sp, err := ReadSpecFromCloudConfig(c, "upgrade")
if err != nil {
return &v1.UpgradeSpec{}, err
}
Expand Down

0 comments on commit beb04ba

Please sign in to comment.