Skip to content

Commit

Permalink
Satisfy type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryyyyy committed Dec 9, 2024
1 parent 890d953 commit b7bd9cd
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ def SetOrgPolicy(
self, resource: str, policy: Dict[str, Any],
etag: Optional[str] = None) -> Dict[str, Any]:
"""Updates the specified Policy on the resource.
Creates a new Policy for that Constraint on the resource if one does not exist.
Creates a new Policy for that Constraint on the resource if one does
not exist.
Args:
Expand Down Expand Up @@ -302,9 +303,9 @@ def DeleteOrgPolicy(
body = {'constraint': constraint}
if etag:
body['etag'] = etag
response = resource_client.clearOrgPolicy(resource=resource,
body=body).execute()
response: Dict = resource_client.clearOrgPolicy(
resource=resource, body=body).execute()
if not response:
return True
logger.warning("Unable to delete Org Policy: {0:s}".format(response))
logger.warning("Unable to delete Org Policy: {0}".format(response))
return False

0 comments on commit b7bd9cd

Please sign in to comment.