Set default distribution for attributes to inherit

pull/25/head
Richard van den Berg 2016-08-09 13:31:44 +02:00
parent 86758cce19
commit af44760967
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ class PyMISP(object):
event = self._prepare_update(event) event = self._prepare_update(event)
for a in attributes: for a in attributes:
if a.get('distribution') is None: if a.get('distribution') is None:
a['distribution'] = event['Event']['distribution'] a['distribution'] = 5
event['Event']['Attribute'] = attributes event['Event']['Attribute'] = attributes
response = self.update_event(event['Event']['id'], event, 'json') response = self.update_event(event['Event']['id'], event, 'json')
return self._check_response(response) return self._check_response(response)