Merge pull request #1223 from toyama0919/master

Fix: Alert: when hipchat Alert.name is multibyte character, occur error.
This commit is contained in:
Arik Fraimovich
2016-08-10 17:04:00 +03:00
committed by GitHub

View File

@@ -36,7 +36,7 @@ class HipChat(BaseDestination):
alert_url = '{host}/alerts/{alert_id}'.format(host=host, alert_id=alert.id);
query_url = '{host}/queries/{query_id}'.format(host=host, query_id=query.id);
message = '<a href="{alert_url}">{alert_name}</a> changed state to {new_state} (based on <a href="{query_url}">this query</a>).'.format(
message = u'<a href="{alert_url}">{alert_name}</a> changed state to {new_state} (based on <a href="{query_url}">this query</a>).'.format(
alert_name=alert.name, new_state=new_state.upper(),
alert_url=alert_url,
query_url=query_url)