Merge pull request #55 from RichieB2B/ncsc-nl/fix-distribution

Set default distribution for attributes to inherit
pull/25/head
Raphaël Vinot 2016-08-09 13:49:42 +02:00 committed by GitHub
commit 710f6a8a0c
1 changed files with 1 additions and 1 deletions

View File

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