codingWithJimmy commented on code in PR #10133:
URL: https://github.com/apache/nifi/pull/10133#discussion_r2229697001
##########
nifi-extension-bundles/nifi-splunk-bundle/nifi-splunk-processors/src/main/java/org/apache/nifi/processors/splunk/GetSplunk.java:
##########
@@ -575,6 +589,17 @@ protected Service createSplunkService(final ProcessContext
context) {
Service.setSSLSocketFactory(sslContextProvider.createContext().getSocketFactory());
}
+ final String chosenApiVersion =
context.getProperty(API_VERSION_CHOICE).getValue();
+ boolean enableV2SearchApi;
+
+ if (API_VERSION_V2.getValue().equals(chosenApiVersion)) {
+ enableV2SearchApi = true;
+ } else {
+ enableV2SearchApi = false;
+ }
+
+ serviceArgs.add("enableV2SearchApi", enableV2SearchApi);
Review Comment:
I can do update it with the link. I also do like your version better and I'm
all for keeping it simple.
--
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]