You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/11/13 16:57:45 UTC
[28/51] [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/0f67d1c6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0f67d1c6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0f67d1c6
Branch: refs/heads/branch-feature-AMBARI-21674
Commit: 0f67d1c690f019ef5289e9bbb4aa93abb607b40b
Parents: 30a43c9
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Wed Nov 8 13:28:03 2017 +0200
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Wed Nov 8 13:28:03 2017 +0200
----------------------------------------------------------------------
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/0f67d1c6/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