mirror of https://github.com/MISP/PyMISP
Set default distribution for attributes to inherit
parent
86758cce19
commit
af44760967
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue