mirror of https://github.com/MISP/PyMISP
parent
00ba313eae
commit
51edb8ab33
|
@ -107,7 +107,7 @@ class AbstractMISP(MutableMapping, MISPFileCache, metaclass=ABCMeta):
|
||||||
NOTE: Every method in every classes inheriting this one are doing
|
NOTE: Every method in every classes inheriting this one are doing
|
||||||
changes in memory and do not modify data on a remote MISP instance.
|
changes in memory and do not modify data on a remote MISP instance.
|
||||||
To do so, you need to call the respective add_* or update_*
|
To do so, you need to call the respective add_* or update_*
|
||||||
methods in ExpandedPyMISP/PyMISP.
|
methods in PyMISP.
|
||||||
"""
|
"""
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.__edited: bool = True # As we create a new object, we assume it is edited
|
self.__edited: bool = True # As we create a new object, we assume it is edited
|
||||||
|
|
|
@ -1736,7 +1736,7 @@ class PyMISP:
|
||||||
|
|
||||||
def add_server(self, server: MISPServer, pythonify: bool = False) -> Union[Dict, MISPServer]:
|
def add_server(self, server: MISPServer, pythonify: bool = False) -> Union[Dict, MISPServer]:
|
||||||
"""Add a server to synchronise with.
|
"""Add a server to synchronise with.
|
||||||
Note: You probably want to use ExpandedPyMISP.get_sync_config and ExpandedPyMISP.import_server instead
|
Note: You probably want to use PyMISP.get_sync_config and PyMISP.import_server instead
|
||||||
|
|
||||||
:param server: sync server config
|
:param server: sync server config
|
||||||
:param pythonify: Returns a PyMISP Object instead of the plain json output
|
:param pythonify: Returns a PyMISP Object instead of the plain json output
|
||||||
|
|
Loading…
Reference in New Issue