From d371183f68bcd13b3569bb4b5f5f962aeca367c0 Mon Sep 17 00:00:00 2001 From: sheburn Date: Fri, 4 Oct 2019 12:25:43 -0500 Subject: [PATCH] Update API.md The function set_bucket_policy requires a string, not a python object. Other places in the code (unit tests) show it with json.dumps to serialize it. --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 46a2a53c..2406e692 100644 --- a/docs/API.md +++ b/docs/API.md @@ -383,7 +383,7 @@ policy_read_only = {"Version":"2012-10-17", ]} -minioClient.set_bucket_policy('mybucket', policy_read_only) +minioClient.set_bucket_policy('mybucket', json.dumps(policy_read_only)) ```