Add matching_metadata to the allowed attributes
Change-Id: Icbd68061a43d18dd27baa7ff68f9381a160cd545
This commit is contained in:
@@ -45,7 +45,6 @@ AN_ALARM = {u'alarm_actions': [u'http://site:8000/alarm'],
|
||||
CREATE_ALARM = copy.deepcopy(AN_ALARM)
|
||||
del CREATE_ALARM['timestamp']
|
||||
del CREATE_ALARM['state_timestamp']
|
||||
del CREATE_ALARM['matching_metadata']
|
||||
del CREATE_ALARM['alarm_id']
|
||||
DELTA_ALARM = {u'alarm_actions': ['url1', 'url2'],
|
||||
u'comparison_operator': u'lt',
|
||||
|
||||
@@ -33,6 +33,7 @@ UPDATABLE_ATTRIBUTES = [
|
||||
'alarm_actions',
|
||||
'ok_actions',
|
||||
'insufficient_data_actions',
|
||||
'matching_metadata',
|
||||
]
|
||||
CREATION_ATTRIBUTES = UPDATABLE_ATTRIBUTES + ['name', 'project_id', 'user_id']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user