Merge pull request #517 from aaronkaplan/patch-2

Update api.py
pull/521/head
Raphaël Vinot 2020-01-15 17:47:50 +01:00 committed by GitHub
commit 19059b9591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1035,7 +1035,7 @@ class PyMISP:
def add_server(self, server: MISPServer, pythonify: bool=False) -> Union[dict, MISPServer]:
"""Add a server to synchronise with.
Note: You probably fant to use ExpandedPyMISP.get_sync_config and ExpandedPyMISP.import_server instead"""
Note: You probably want to use ExpandedPyMISP.get_sync_config and ExpandedPyMISP.import_server instead"""
server = self._prepare_request('POST', f'servers/add', data=server)
server = self._check_response(server, expect_json=True)
if not (self.global_pythonify or pythonify) or 'errors' in server: