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



##########
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:
       @mneethiraj Please have a look. The service type for chained plugin is 
loaded from parent plugin config.




-- 
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