Another small change to line up provisioner certificate vs upload

certificate
This commit is contained in:
Cyrus 2024-03-14 15:38:46 -04:00
parent cf08b1d2d3
commit 750bf8d3d2

View File

@ -983,13 +983,16 @@ public class CertificatePageController extends PageController<NoPageParams> {
platformCredential.getSerialNumber().toString(),
platformCredential.getPlatformSerial());
if (componentResults.isEmpty()) {
ComponentResult componentResult;
for (ComponentIdentifier componentIdentifier : platformCredential
.getComponentIdentifiers()) {
componentResultRepository.save(
new ComponentResult(platformCredential.getPlatformSerial(),
componentResult = new ComponentResult(platformCredential.getPlatformSerial(),
platformCredential.getSerialNumber().toString(),
platformCredential.getPlatformChainType(),
componentIdentifier));
componentIdentifier);
componentResult.setFailedValidation(false);
componentResult.setDelta(!platformCredential.isPlatformBase());
componentResultRepository.save(componentResult);
}
} else {
for (ComponentResult componentResult : componentResults) {