Skip to content

Commit

Permalink
fix(localMeta): Add delegated targets back to localMeta
Browse files Browse the repository at this point in the history
Signed-off-by: Baptiste Foy <[email protected]>
  • Loading branch information
BaptisteFoy authored and trishankatdatadog committed Oct 12, 2022
1 parent b4c6f5a commit e115710
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,16 @@ func (c *Client) getLocalMeta() error {
c.loadTargets(targets.Targets)
}
}

for fileName := range meta {
if fileName != "targets.json" &&
fileName != "snapshot.json" &&
fileName != "root.json" &&
fileName != "timestamp.json" {
c.localMeta[fileName] = meta[fileName]
}
}

if loadFailed {
// If any of the metadata failed to be verified, return the reason for that failure
return retErr
Expand Down

0 comments on commit e115710

Please sign in to comment.