Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Commit c354867

Browse files
author
Sandro Modarelli
authored
removed dict loading because api returns a list (#44)
1 parent 4ba74e5 commit c354867

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pystackpath/stacks/wafsites/api_login_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ def update(self, **payload):
1010
:return: A list of API login URLs
1111
"""
1212
response = self._client.put(f"{self._base_api}/api_login_urls", data=json.dumps(payload))
13-
return self.loaddict(response.json()["apiLoginUrls"])
13+
return response.json()["apiLoginUrls"]

pystackpath/stacks/wafsites/api_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ def update(self, **payload):
1010
:return: A list of API URLs
1111
"""
1212
response = self._client.put(f"{self._base_api}/api_urls", data=json.dumps(payload))
13-
return self.loaddict(response.json()["apiUrls"])
13+
return response.json()["apiUrls"]

0 commit comments

Comments
 (0)