Add matching_metadata to the allowed attributes

Change-Id: Icbd68061a43d18dd27baa7ff68f9381a160cd545
This commit is contained in:
Angus Salkeld
2013-07-05 12:18:24 +10:00
parent f1aaf95f06
commit 2687315dc8
2 changed files with 1 additions and 1 deletions

View File

@@ -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',

View File

@@ -33,6 +33,7 @@ UPDATABLE_ATTRIBUTES = [
'alarm_actions',
'ok_actions',
'insufficient_data_actions',
'matching_metadata',
]
CREATION_ATTRIBUTES = UPDATABLE_ATTRIBUTES + ['name', 'project_id', 'user_id']