mirror of https://github.com/MISP/PyMISPGalaxies
chg: Update API, bump misp-galaxy
parent
9eb55845e5
commit
4638a1558d
|
@ -51,6 +51,7 @@ class Galaxy():
|
||||||
self.version = self.galaxy['version']
|
self.version = self.galaxy['version']
|
||||||
self.uuid = self.galaxy['uuid']
|
self.uuid = self.galaxy['uuid']
|
||||||
self.namespace = self.galaxy.pop('namespace', None)
|
self.namespace = self.galaxy.pop('namespace', None)
|
||||||
|
self.kill_chain_order = self.galaxy.pop('kill_chain_order', None)
|
||||||
|
|
||||||
def to_json(self):
|
def to_json(self):
|
||||||
return json.dumps(self, cls=EncodeGalaxies)
|
return json.dumps(self, cls=EncodeGalaxies)
|
||||||
|
@ -60,6 +61,8 @@ class Galaxy():
|
||||||
'version': self.version, 'uuid': self.uuid, 'icon': self.icon}
|
'version': self.version, 'uuid': self.uuid, 'icon': self.icon}
|
||||||
if self.namespace:
|
if self.namespace:
|
||||||
to_return['namespace'] = self.namespace
|
to_return['namespace'] = self.namespace
|
||||||
|
if self.kill_chain_order:
|
||||||
|
to_return['kill_chain_order'] = self.kill_chain_order
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 769e0002ef792e9c1f8ddd671af8789abc848b18
|
Subproject commit 4f3e6335b51df02c7d0950b9dfe325ab78ffc62e
|
Loading…
Reference in New Issue