chg: Make get_object return a not standalone object

pull/595/head
louis 2020-06-30 13:07:38 +02:00
parent f8589061cb
commit b6322c0d0c
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ class PyMISP:
misp_object_r = self._check_json_response(r)
if not (self.global_pythonify or pythonify) or 'errors' in misp_object_r:
return misp_object_r
o = MISPObject(misp_object_r['Object']['name'])
o = MISPObject(misp_object_r['Object']['name'], standalone=False)
o.from_dict(**misp_object_r)
return o