From 45963a157cc85eea7095cb22b7b72e7a5f0de7ed Mon Sep 17 00:00:00 2001 From: "Q.hongtao" Date: Sun, 3 Jan 2021 09:49:38 +0800 Subject: [PATCH] Remove unicode from notifiler Implements: blueprint remove-unicode Change-Id: I875761a33031a65aa0f180bf078b486404c5213f --- vitrage/notifier/plugins/aodh/aodh_notifier.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vitrage/notifier/plugins/aodh/aodh_notifier.py b/vitrage/notifier/plugins/aodh/aodh_notifier.py index a1dfa0a56..73994f866 100644 --- a/vitrage/notifier/plugins/aodh/aodh_notifier.py +++ b/vitrage/notifier/plugins/aodh/aodh_notifier.py @@ -84,18 +84,18 @@ def _alarm_request(data, state): severity = severity_translation.get(data.get(VProps.SEVERITY), 'low') return dict( name=aodh_alarm_name, - description=u'Vitrage deduced alarm', + description='Vitrage deduced alarm', event_rule=dict(query=[ dict( - field=u'resource_id', + field='resource_id', type='', - op=u'eq', + op='eq', value=affected_resource_id), dict( - field=u'vitrage_id', + field='vitrage_id', type='', - op=u'eq', + op='eq', value=data.get(VProps.VITRAGE_ID))]), severity=severity, state=state, - type=u'event') + type='event')