Skip to content

Commit

Permalink
changed "response"
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragsharma-123 committed Oct 30, 2024
1 parent a38d7b6 commit e65abee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spotinst_sdk2/clients/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,7 @@ def update_access_policy(self, policy_id: str, policy: admin_org.AccessPolicy):
formatted_response = self.convert_json(
policy_response, self.camel_to_underscore)

ret_val = formatted_response["response"]["items"][0]

return ret_val
return formatted_response["response"]["status"]

def delete_access_policy(self, policy_id: str):
"""
Expand Down

0 comments on commit e65abee

Please sign in to comment.