Skip to content

Commit e65abee

Browse files
author
Anurag Sharma
committed
changed "response"
1 parent a38d7b6 commit e65abee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spotinst_sdk2/clients/admin/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,7 @@ def update_access_policy(self, policy_id: str, policy: admin_org.AccessPolicy):
584584
formatted_response = self.convert_json(
585585
policy_response, self.camel_to_underscore)
586586

587-
ret_val = formatted_response["response"]["items"][0]
588-
589-
return ret_val
587+
return formatted_response["response"]["status"]
590588

591589
def delete_access_policy(self, policy_id: str):
592590
"""

0 commit comments

Comments
 (0)