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

Commit

Permalink
typo fixed on policy retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
sandromodarelli committed Feb 28, 2020
1 parent 2e3abe7 commit 9a8d6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pystackpath/stacks/wafsites/policy_groups/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get(self, policy_id):
:param policy_id: The ID of the WAF policy to retrieve
"""
response = self._client.get(f"{self._base_api}/policies/{policy_id}")
return self.loaddict(response.json()["policyGroup"])
return self.loaddict(response.json()["policy"])

def enable(self):
"""
Expand Down

0 comments on commit 9a8d6f3

Please sign in to comment.