new: return the new object in `add_object`

pull/247/head
Raphaël Vinot 2018-06-25 16:53:21 +08:00
parent 454ec18c58
commit 8c81145dc0
1 changed files with 1 additions and 0 deletions

View File

@ -674,6 +674,7 @@ class MISPEvent(AbstractMISP):
raise InvalidMISPObject("An object to add to an existing Event needs to be either a MISPObject, or a plain python dictionary")
self.Object.append(misp_obj)
self.edited = True
return misp_obj
def __repr__(self):
if hasattr(self, 'info'):