You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by rm...@apache.org on 2021/06/14 18:16:43 UTC

[ranger] branch ranger-2.2 updated: RANGER-3316: Fix Plugin's audit excluded roles configuration

This is an automated email from the ASF dual-hosted git repository.

rmani pushed a commit to branch ranger-2.2
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.2 by this push:
     new b06f869  RANGER-3316: Fix Plugin's audit excluded roles configuration
b06f869 is described below

commit b06f86997e95cdaa29d3f74bc40a3f689d6cb0e7
Author: Naoki Takezoe <ta...@gmail.com>
AuthorDate: Mon Jun 14 23:14:58 2021 +0900

    RANGER-3316: Fix Plugin's audit excluded roles configuration
    
    Signed-off-by: Ramesh Mani <rm...@cloudera.com>
---
 .../apache/ranger/authorization/hadoop/config/RangerPluginConfig.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/agents-common/src/main/java/org/apache/ranger/authorization/hadoop/config/RangerPluginConfig.java b/agents-common/src/main/java/org/apache/ranger/authorization/hadoop/config/RangerPluginConfig.java
index 3e35709..10a2a83 100644
--- a/agents-common/src/main/java/org/apache/ranger/authorization/hadoop/config/RangerPluginConfig.java
+++ b/agents-common/src/main/java/org/apache/ranger/authorization/hadoop/config/RangerPluginConfig.java
@@ -182,7 +182,7 @@ public class RangerPluginConfig extends RangerConfiguration {
     public void setAuditExcludedUsersGroupsRoles(Set<String> users, Set<String> groups, Set<String> roles) {
         auditExcludedUsers  = CollectionUtils.isEmpty(users) ? Collections.emptySet() : new HashSet<>(users);
         auditExcludedGroups = CollectionUtils.isEmpty(groups) ? Collections.emptySet() : new HashSet<>(groups);
-        auditExcludedRoles  = CollectionUtils.isEmpty(groups) ? Collections.emptySet() : new HashSet<>(roles);
+        auditExcludedRoles  = CollectionUtils.isEmpty(roles) ? Collections.emptySet() : new HashSet<>(roles);
 
         if (LOG.isDebugEnabled()) {
             LOG.debug("auditExcludedUsers=" + auditExcludedUsers + ", auditExcludedGroups=" + auditExcludedGroups + ", auditExcludedRoles=" + auditExcludedRoles);