mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-04 23:35:11 -04:00
Rename apifetcher methods
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
52a65c20ac
commit
cd4c90af7e
10 changed files with 32 additions and 34 deletions
|
@ -125,7 +125,7 @@ func uploadReport(ctx context.Context,
|
|||
inputVersion := convertTCBVersionToSNPVersion(report.SNPReport.LaunchTCB)
|
||||
log.Info(fmt.Sprintf("Input report: %+v", inputVersion))
|
||||
|
||||
latestAPIVersionAPI, err := attestationconfigapi.NewFetcherWithCustomCDNAndCosignKey(cfg.url, cfg.cosignPublicKey).FetchSEVSNPVersionLatest(ctx, attestation)
|
||||
latestAPIVersionAPI, err := attestationconfigapi.NewFetcherWithCustomCDNAndCosignKey(cfg.url, cfg.cosignPublicKey).FetchLatestVersion(ctx, attestation)
|
||||
if err != nil {
|
||||
if errors.Is(err, attestationconfigapi.ErrNoVersionsFound) {
|
||||
log.Info("No versions found in API, but assuming that we are uploading the first version.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue