dont add PPs to refresh summary event
@@ -401,6 +401,9 @@ func update(ctx *Context, info *planContext, opts planOptions, dryRun bool) (Res
}
policies := map[string]string{}
+
+ // Refresh does not execute Policy Packs.
+ if !opts.isRefresh {
for _, p := range opts.RequiredPolicies {
policies[p.Name()] = p.Version()
}
@@ -409,6 +412,7 @@ func update(ctx *Context, info *planContext, opts planOptions, dryRun bool) (Res
packName := fmt.Sprintf("%s (%s)", pack.Name, path)
policies[packName] = "(local)"
}
+ }
var resourceChanges ResourceChanges
var res result.Result
