From 3f97d018e89313ac18fa529b4dcaeb6dc9159cec Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Tue, 1 Aug 2023 18:31:55 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20The=20controlmap=20control=20uid?= =?UTF-8?q?s=20also=20need=20to=20be=20cleared?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- policy/framework.go | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/framework.go b/policy/framework.go index 496ebab4..92a4731a 100644 --- a/policy/framework.go +++ b/policy/framework.go @@ -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