Skip to content

Commit

Permalink
fix dataproduct visibility policies resources issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbonte21 committed Apr 1, 2024
1 parent 414f381 commit f42ed95
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 f42ed95

Please sign in to comment.