mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
measurements: correctly override validation options
This commit is contained in:
parent
2a7a9dc2aa
commit
a2e2f0387c
@ -119,6 +119,7 @@ func ApplyOverrides(in M, csp cloudprovider.Provider, attestationVariant string)
|
||||
return nil, fmt.Errorf("missing measurement for PCR %d", i)
|
||||
}
|
||||
m.ValidationOpt = Enforce
|
||||
out[i] = m
|
||||
}
|
||||
for _, i := range override.MustWarn {
|
||||
m, ok := out[i]
|
||||
@ -126,6 +127,7 @@ func ApplyOverrides(in M, csp cloudprovider.Provider, attestationVariant string)
|
||||
return nil, fmt.Errorf("missing measurement for PCR %d", i)
|
||||
}
|
||||
m.ValidationOpt = WarnOnly
|
||||
out[i] = m
|
||||
}
|
||||
}
|
||||
return out, nil
|
||||
|
Loading…
Reference in New Issue
Block a user