You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by GitBox <gi...@apache.org> on 2022/03/19 14:48:18 UTC

[GitHub] [ranger] CanGuan commented on a change in pull request #136: RANGER-3671: Fix chainedPlugin construct

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: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org