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

hapylestat pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new ae5fe7a  AMBARI-25469. Bad UTF encoding on Alert listener receiver. 
(dvitiiuk via dgrinenko) (#3175)
ae5fe7a is described below

commit ae5fe7aad56e6ba0a65a2ffacf15edddd7e32906
Author: dvitiiuk <dmitriiviti...@gmail.com>
AuthorDate: Thu Jan 30 14:33:21 2020 +0200

    AMBARI-25469. Bad UTF encoding on Alert listener receiver. (dvitiiuk via 
dgrinenko) (#3175)
---
 ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py | 1 +
 1 file changed, 1 insertion(+)

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 1acad26..b3e454a 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
@@ -185,6 +185,7 @@ class BaseAlert(object):
       data['text'] = "There is a problem with the alert definition: 
{0}".format(str(exception))
     finally:
       # put the alert into the collector so it can be collected on the next run
+      data['text'] = data['text'].replace('\x00', '')
       self.collector.put(self.cluster_name, data)
 
 

Reply via email to