Skip to content

Commit

Permalink
🐛 The controlmap control uids also need to be cleared (#673)
Browse files Browse the repository at this point in the history
Otherwise, you cannot compile a bundle twice. And when you run locally,
the bundle gets compiled during validation and then when it gets set in
the data store
  • Loading branch information
jaym authored Aug 2, 2023
1 parent cc060e3 commit 730f676
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ func (c *ControlMap) refreshMRNs(ownerMRN string, cache *bundleCache) error {
if !ok {
return errors.New("cannot find policy '" + control.Uid + "' in this bundle, which is referenced by control " + c.Mrn)
}
control.Uid = ""
}

return nil
Expand Down

0 comments on commit 730f676

Please sign in to comment.