You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ol...@apache.org on 2018/06/11 10:48:40 UTC

[ambari] branch trunk updated: [AMBARI-24069] Fix the error setting of estring (#1505)

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

oleewere pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 9462805  [AMBARI-24069] Fix the error setting of estring (#1505)
9462805 is described below

commit 9462805e5103674a60eb13a5d6730421748f4650
Author: a8726426 <li...@139.com>
AuthorDate: Mon Jun 11 18:48:28 2018 +0800

    [AMBARI-24069] Fix the error setting of estring (#1505)
    
    The exclude string in method named fillModelsForLogFile is seted by the include message of request
---
 .../src/main/java/org/apache/ambari/logsearch/util/DownloadUtil.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/util/DownloadUtil.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/util/DownloadUtil.java
index ef20e38..85c14e0 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/util/DownloadUtil.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/util/DownloadUtil.java
@@ -125,7 +125,7 @@ public class DownloadUtil {
     if (StringUtils.isBlank(excludeString)) {
       excludeString = "\"\"";
     } else {
-      List<String> exclude = Splitter.on(request.getIncludeMessage()).splitToList(LogSearchConstants.I_E_SEPRATOR);
+      List<String> exclude = Splitter.on(request.getExcludeMessage()).splitToList(LogSearchConstants.I_E_SEPRATOR);
       excludeString = "\"" + StringUtils.join(exclude, "\", \"") + "\"";
     }
     models.put("eString", excludeString);

-- 
To stop receiving notification emails like this one, please contact
oleewere@apache.org.