MCPcopy Create free account
hub / github.com/wal-e/wal-e / apathetic_bucket_delete

Function apathetic_bucket_delete

tests/gs_integration_help.py:82–95  ·  view source on GitHub ↗
(bucket_name, blobs, *args, **kwargs)

Source from the content-addressed store, hash-verified

80
81
82def apathetic_bucket_delete(bucket_name, blobs, *args, **kwargs):
83 conn = storage.Client()
84 bucket = storage.Bucket(conn, name=bucket_name)
85
86 if bucket:
87 # Delete key names passed by the test code.
88 bucket.delete_blobs(blobs)
89
90 try:
91 bucket.delete()
92 except exceptions.NotFound:
93 pass
94
95 return conn
96
97
98def insistent_bucket_delete(conn, bucket_name, blobs):

Callers 1

__enter__Method · 0.70

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected