From 56a18275bb3df476ce54c9837168ddc6333b2777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 11 Jan 2017 14:29:20 -0500 Subject: [PATCH] Fix get sharing groups Fix #79 --- pymisp/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymisp/api.py b/pymisp/api.py index f846a8e..9729bc6 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -370,13 +370,13 @@ class PyMISP(object): return self._check_response(response) def _valid_uuid(self,uuid): - """ + """ Test if uuid is valid CakeText::uuid follow RFC 4122 - the third group must start with a 4, - the fourth group must start with 8, 9, a or b. - + :param uuid: an uuid """ regex = re.compile('^[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}\Z', re.I) @@ -1048,7 +1048,7 @@ class PyMISP(object): session = self.__prepare_session() url = urljoin(self.root_url, 'sharing_groups/index.json') response = session.get(url) - return self._check_response(response)['response'][0] + return self._check_response(response)['response'] # ############## Users ##################