From 9a8d6f3c280a37c77849d4f984bba89f53637ec0 Mon Sep 17 00:00:00 2001 From: Sandro Modarelli Date: Fri, 28 Feb 2020 16:27:09 +0100 Subject: [PATCH] typo fixed on policy retrieval --- pystackpath/stacks/wafsites/policy_groups/policies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystackpath/stacks/wafsites/policy_groups/policies.py b/pystackpath/stacks/wafsites/policy_groups/policies.py index 998d82f..650170d 100644 --- a/pystackpath/stacks/wafsites/policy_groups/policies.py +++ b/pystackpath/stacks/wafsites/policy_groups/policies.py @@ -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): """