Skip to content

Commit

Permalink
🐛 The controlmap control uids also need to be cleared
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 committed Aug 1, 2023
1 parent 352eec9 commit 3f97d01
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 3f97d01

Please sign in to comment.