Remove unicode from notifiler
Implements: blueprint remove-unicode Change-Id: I875761a33031a65aa0f180bf078b486404c5213f
This commit is contained in:
parent
017210703c
commit
45963a157c
@ -84,18 +84,18 @@ def _alarm_request(data, state):
|
|||||||
severity = severity_translation.get(data.get(VProps.SEVERITY), 'low')
|
severity = severity_translation.get(data.get(VProps.SEVERITY), 'low')
|
||||||
return dict(
|
return dict(
|
||||||
name=aodh_alarm_name,
|
name=aodh_alarm_name,
|
||||||
description=u'Vitrage deduced alarm',
|
description='Vitrage deduced alarm',
|
||||||
event_rule=dict(query=[
|
event_rule=dict(query=[
|
||||||
dict(
|
dict(
|
||||||
field=u'resource_id',
|
field='resource_id',
|
||||||
type='',
|
type='',
|
||||||
op=u'eq',
|
op='eq',
|
||||||
value=affected_resource_id),
|
value=affected_resource_id),
|
||||||
dict(
|
dict(
|
||||||
field=u'vitrage_id',
|
field='vitrage_id',
|
||||||
type='',
|
type='',
|
||||||
op=u'eq',
|
op='eq',
|
||||||
value=data.get(VProps.VITRAGE_ID))]),
|
value=data.get(VProps.VITRAGE_ID))]),
|
||||||
severity=severity,
|
severity=severity,
|
||||||
state=state,
|
state=state,
|
||||||
type=u'event')
|
type='event')
|
||||||
|
Loading…
Reference in New Issue
Block a user