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

madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new 50de18f  RANGER-2654: fixed incorrect appId assignment (introduced in 
previous commit for RANGER-2654)
50de18f is described below

commit 50de18f19f14e793e454a598d4569bd598a2cb0f
Author: Madhan Neethiraj <[email protected]>
AuthorDate: Sun Dec 1 12:30:28 2019 -0800

    RANGER-2654: fixed incorrect appId assignment (introduced in previous 
commit for RANGER-2654)
---
 .../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 0e097e0..cea6842 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
@@ -51,7 +51,7 @@ public class RangerPluginConfig extends RangerConfiguration {
         addResourcesForServiceType(serviceType);
 
         this.serviceType    = serviceType;
-        this.appId          = StringUtils.isEmpty(appId) ? appId : serviceType;
+        this.appId          = StringUtils.isEmpty(appId) ? serviceType : appId;
         this.propertyPrefix = "ranger.plugin." + serviceType;
         this.serviceName    = StringUtils.isEmpty(serviceName) ? 
this.get(propertyPrefix + ".service.name") : serviceName;
 

Reply via email to