From db052e99f9fe0ea902509d6ebb76e19ae22d2429 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Thu, 19 Oct 2023 19:18:35 -0500 Subject: [PATCH] Fixes error "'compute_content_md5' is not defined" for setversioning --- S3/S3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S3/S3.py b/S3/S3.py index 9bf2e924..57275f7e 100644 --- a/S3/S3.py +++ b/S3/S3.py @@ -1088,7 +1088,7 @@ def set_versioning(self, uri, enabled): body += '%s' % status body += '' debug(u"set_versioning(%s)" % body) - headers['content-md5'] = compute_content_md5(body) + headers['content-md5'] = generate_content_md5(body) request = self.create_request("BUCKET_CREATE", uri = uri, headers = headers, body = body, uri_params = {'versioning': None})