mneethiraj commented on a change in pull request #136:
URL: https://github.com/apache/ranger/pull/136#discussion_r830207363



##########
File path: 
agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java
##########
@@ -1084,7 +1084,7 @@ private RangerAdminClient getAdminClient() throws 
Exception {
                        try {
                                @SuppressWarnings("unchecked")
                                Class<RangerChainedPlugin> pluginClass   = 
(Class<RangerChainedPlugin>) Class.forName(className);
-                               RangerChainedPlugin        chainedPlugin = 
pluginClass.getConstructor(RangerBasePlugin.class, 
String.class).newInstance(this, chainedService);
+                               RangerChainedPlugin        chainedPlugin = 
pluginClass.getConstructor(RangerBasePlugin.class, String.class, 
String.class).newInstance(this, pluginConfig.getServiceType(), chainedService);

Review comment:
       serviceType should that of chainedService; pluginConfig.getServiceType() 
would be the serviceType of current plugin.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to