From 9cd172cb97faa2ba375480f21c0d833c2a84181b Mon Sep 17 00:00:00 2001 From: Christian Zunker Date: Tue, 12 Dec 2023 12:59:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Replace=20deprecated=20policy.Bu?= =?UTF-8?q?ndleFromPaths?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian Zunker --- provisioner/provisioner.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/provisioner/provisioner.go b/provisioner/provisioner.go index 7a2337a..a9e724a 100644 --- a/provisioner/provisioner.go +++ b/provisioner/provisioner.go @@ -396,7 +396,8 @@ func (p *Provisioner) executeCnspec(ui packer.Ui, comm packer.Communicator) erro if p.config.PolicyBundle != "" { ui.Message("load policy bundle from: " + p.config.PolicyBundle) var err error - policyBundle, err = policy.BundleFromPaths(p.config.PolicyBundle) + bundleLoader := policy.DefaultBundleLoader() + policyBundle, err = bundleLoader.BundleFromPaths(p.config.PolicyBundle) if err != nil { return errors.Wrap(err, "could not load policy bundle from "+p.config.PolicyBundle) }