Skip to content

Commit

Permalink
Merge pull request #2908 from atlanhq/transform-datamesh-policies
Browse files Browse the repository at this point in the history
Fix issue
  • Loading branch information
nikhilbonte21 authored Apr 1, 2024
2 parents 0664290 + 9622681 commit 51db996
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ private void setPolicyResources(RangerPolicy rangerPolicy, AtlasEntityHeader atl
private void setPolicyResourcesForDatameshPolicies(RangerPolicy rangerPolicy, AtlasEntityHeader atlasPolicy) {
Map<String, RangerPolicyResource> resources = getFinalResources(atlasPolicy);

if (resources.containsKey("entity-classification")) {
if (!resources.containsKey("entity-classification")) {
RangerPolicyResource resource = new RangerPolicyResource(Arrays.asList("*"), false, false);
resources.put("entity-classification", resource);
}

if (resources.containsKey("entity-type")) {
if (!resources.containsKey("entity-type")) {
RangerPolicyResource resource = new RangerPolicyResource(Arrays.asList("*"), false, false);
resources.put("entity-type", resource);
}
Expand Down

0 comments on commit 51db996

Please sign in to comment.