mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 23:36:29 -04:00
Fix error message in attestationconfig cli
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
fdcfa6223e
commit
c6dc0086f9
@ -66,13 +66,13 @@ func compareVersions(attestationVariant variant.Variant, files []string, fs file
|
||||
lowestVersion := files[0]
|
||||
lowestReport, err := readReport(files[0], fs)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("reading tdx report: %w", err)
|
||||
return "", fmt.Errorf("reading report: %w", err)
|
||||
}
|
||||
|
||||
for _, file := range files[1:] {
|
||||
report, err := readReport(file, fs)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("reading tdx report: %w", err)
|
||||
return "", fmt.Errorf("reading report: %w", err)
|
||||
}
|
||||
|
||||
if client.IsInputNewerThanOtherVersion(attestationVariant, lowestReport, report) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user