mirror of https://github.com/MISP/PyMISP
fix: the sharing_group_id isn't required.
parent
c68b69b422
commit
b183d3fd17
|
@ -785,7 +785,8 @@ class MISPObject(AbstractMISP):
|
|||
self._default_attributes_parameters.pop('deleted', None) # doesn't make sense to pre-set it
|
||||
self._default_attributes_parameters.pop('data', None) # in case the original in a sample or an attachment
|
||||
self.distribution = self._default_attributes_parameters.distribution
|
||||
self.sharing_group_id = self._default_attributes_parameters.sharing_group_id
|
||||
if self._default_attributes_parameters.get('sharing_group_id'):
|
||||
self.sharing_group_id = self._default_attributes_parameters.sharing_group_id
|
||||
else:
|
||||
self.distribution = 5 # Default to inherit
|
||||
self.sharing_group_id = None
|
||||
|
|
Loading…
Reference in New Issue