Skip to content

Commit

Permalink
🐛 use correct checksum for resolved policy
Browse files Browse the repository at this point in the history
  • Loading branch information
jaym committed Jun 29, 2023
1 parent 4f0b733 commit ae71022
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion policy/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ func (s *LocalServices) tryResolve(ctx context.Context, bundleMrn string, assetF

frameworkObj := bundleMap.Frameworks[bundleMrn]
policyObj := bundleMap.Policies[bundleMrn]
resolvedPolicyExecutionChecksum := BundleExecutionChecksum(policyObj, frameworkObj)

matchingFilters, err := MatchingAssetFilters(bundleMrn, assetFilters, policyObj)
if err != nil {
Expand Down Expand Up @@ -601,7 +602,7 @@ func (s *LocalServices) tryResolve(ctx context.Context, bundleMrn string, assetF
}

resolvedPolicy := ResolvedPolicy{
GraphExecutionChecksum: policyObj.GraphExecutionChecksum,
GraphExecutionChecksum: resolvedPolicyExecutionChecksum,
Filters: matchingFilters,
FiltersChecksum: assetFiltersChecksum,
ExecutionJob: executionJob,
Expand Down

0 comments on commit ae71022

Please sign in to comment.