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

jensdeppe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git

commit c00512c3e818d3342e5359be872cc8166841e3ee
Author: Jens Deppe <[email protected]>
AuthorDate: Mon Apr 2 08:19:13 2018 -0700

    Revert "GEODE-4386: Correct check in the case where JNDI binding does not 
exist"
    
    This reverts commit 0297afdd80098364d55d476160d42820581dd320.
---
 .../management/internal/cli/commands/DescribeJndiBindingCommand.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/DescribeJndiBindingCommand.java
 
b/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/DescribeJndiBindingCommand.java
index cc2f086..6174b02 100644
--- 
a/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/DescribeJndiBindingCommand.java
+++ 
b/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/DescribeJndiBindingCommand.java
@@ -57,8 +57,7 @@ public class DescribeJndiBindingCommand extends 
InternalGfshCommand {
       CacheConfig cacheConfig = ccService.getCacheConfig("cluster");
       List<JndiBindingsType.JndiBinding> jndiBindings = 
cacheConfig.getJndiBindings();
 
-      if (jndiBindings.stream().noneMatch(b -> 
b.getJndiName().equals(bindingName)
-          || b.getJndiName().equals("java:" + bindingName))) {
+      if (jndiBindings.size() == 0) {
         return ResultBuilder
             .createUserErrorResult(String.format("JNDI binding : %s not 
found", bindingName));
       }

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to