Repository: ambari Updated Branches: refs/heads/trunk 4320de6ee -> 8bb5cafba
AMBARI-8864. Fix alerts for Hive metastore ha.(vbrodetskyi) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8bb5cafb Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8bb5cafb Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8bb5cafb Branch: refs/heads/trunk Commit: 8bb5cafba4d54fdaad86a24dc4c4e6694f19a3fa Parents: 4320de6 Author: Vitaly Brodetskyi <[email protected]> Authored: Mon Dec 22 20:17:40 2014 +0200 Committer: Vitaly Brodetskyi <[email protected]> Committed: Mon Dec 22 20:17:40 2014 +0200 ---------------------------------------------------------------------- ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/8bb5cafb/ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py ---------------------------------------------------------------------- diff --git a/ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py b/ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py index b965fdd..f981b28 100644 --- a/ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py +++ b/ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py @@ -89,7 +89,7 @@ class PortAlert(BaseAlert): uri_value_array = uri_value.split(',') if len(uri_value_array) > 1: for item in uri_value_array: - if item.startswith(self.host_name): + if self.host_name in item: uri_value = item host = BaseAlert.get_host_from_url(uri_value)
