Skip to content

Commit

Permalink
fix: fix deletion of buckets in production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Apr 22, 2021
1 parent eba55f3 commit bbcd1d6
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 173 deletions.
4 changes: 2 additions & 2 deletions aw_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ def create_bucket(self, bucket_id: str, event_type: str, queued=False):
}
self._post(endpoint, data)

def delete_bucket(self, bucket_id: str):
self._delete("buckets/{}".format(bucket_id))
def delete_bucket(self, bucket_id: str, force: bool = False):
self._delete("buckets/{}".format(bucket_id) + ("?force=1" if force else ""))

# @deprecated
def setup_bucket(self, bucket_id: str, event_type: str):
Expand Down
Loading

0 comments on commit bbcd1d6

Please sign in to comment.