Skip to content
Snippets Groups Projects
Unverified Commit 0047a75e authored by Lily Sturmann's avatar Lily Sturmann Committed by GitHub
Browse files

Only include Attestation data if attestation storage enabled (#494)

parent 2b68110c
No related branches found
No related tags found
No related merge requests found
......@@ -150,13 +150,16 @@ func parseEntry(uuid string, e models.LogEntryAnon) (interface{}, error) {
}
obj := getCmdOutput{
Attestation: string(e.Attestation.Data),
AttestationType: e.Attestation.MediaType,
Body: eimpl,
UUID: uuid,
IntegratedTime: *e.IntegratedTime,
LogIndex: int(*e.LogIndex),
LogID: *e.LogID,
Body: eimpl,
UUID: uuid,
IntegratedTime: *e.IntegratedTime,
LogIndex: int(*e.LogIndex),
LogID: *e.LogID,
}
if e.Attestation != nil {
obj.Attestation = string(e.Attestation.Data)
obj.AttestationType = e.Attestation.MediaType
}
return &obj, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment