You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by am...@apache.org on 2017/11/16 15:36:29 UTC

[06/50] [abbrv] ambari git commit: AMBARI-22361. Fix bug in base_alert when matching hostnames (stephanesan via dlysnichenko)

AMBARI-22361. Fix bug in base_alert when matching hostnames (stephanesan via dlysnichenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ca0e601a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ca0e601a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ca0e601a

Branch: refs/heads/branch-feature-AMBARI-22008
Commit: ca0e601a9b9e930d01121ac580d2ecb2b6871676
Parents: 56033c9
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Wed Nov 8 13:28:03 2017 +0200
Committer: Attila Magyar <am...@hortonworks.com>
Committed: Thu Nov 16 16:35:25 2017 +0100

----------------------------------------------------------------------
 ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ca0e601a/ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py b/ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py
index 05f8023..5c0305e 100644
--- a/ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py
+++ b/ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py
@@ -463,7 +463,7 @@ class BaseAlert(object):
       # get the host for dfs.namenode.http-address.c1ha.nn1 and see if it's
       # this host
       value = self._get_configuration_value(key)
-      if value is not None and (self.host_name in value or self.public_host_name in value):
+      if value is not None and (self.host_name.lower() in value.lower() or self.public_host_name.lower() in value.lower()):
         return AlertUri(uri=value, is_ssl_enabled=is_ssl_enabled)
 
     return None