This is an automated email from the ASF dual-hosted git repository. aonishuk pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
commit cd9d442b60521dc73363f1588f6715f17754367c Author: aonishuk <aonis...@hortonworks.com> AuthorDate: Fri Oct 12 09:38:15 2018 +0300 Update ams_alert.py --- ambari-agent/src/main/python/ambari_agent/alerts/ams_alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ambari-agent/src/main/python/ambari_agent/alerts/ams_alert.py b/ambari-agent/src/main/python/ambari_agent/alerts/ams_alert.py index 32ac725..74511ed 100644 --- a/ambari-agent/src/main/python/ambari_agent/alerts/ams_alert.py +++ b/ambari-agent/src/main/python/ambari_agent/alerts/ams_alert.py @@ -212,7 +212,7 @@ def f(args): self.minimum_value = metric_info['minimum_value'] if 'value' in metric_info: - realcode = REALCODE_REGEXP.sub('(\{(\d+)\})', 'args[\g<2>][k]', metric_info['value']) + realcode = REALCODE_REGEXP.sub('args[\g<2>][k]', metric_info['value']) self.custom_value_module = imp.new_module(str(uuid.uuid4())) code = self.DYNAMIC_CODE_VALUE_TEMPLATE.format(realcode)