Skip to content

Commit 50460bd

Browse files
committed
Incorporated review comments
1 parent 48ec3cd commit 50460bd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/API.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ __Example__
352352

353353

354354
```py
355-
# Set policy to READ ONLY to all object paths in bucket.
356-
policy_READ_ONLY = {"Version":"2012-10-17",
355+
# Set policy to read only to all object paths in bucket.
356+
policy_read_only = {"Version":"2012-10-17",
357357
"Statement":[
358358
{
359359
"Sid":"",
@@ -379,7 +379,7 @@ policy_READ_ONLY = {"Version":"2012-10-17",
379379
]}
380380

381381

382-
minioClient.set_bucket_policy('mybucket', policy_READ_ONLY)
382+
minioClient.set_bucket_policy('mybucket', policy_read_only)
383383
```
384384

385385
<a name="get_bucket_notification"></a>

examples/set_bucket_policy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Make a new bucket
2929
try:
3030
# Set bucket policy to read-only for bucket 'my-bucketname'
31-
policy_READ_ONLY = {
31+
policy_read_only = {
3232
"Version":"2012-10-17",
3333
"Statement":[
3434
{
@@ -54,10 +54,10 @@
5454
}
5555
]
5656
}
57-
client.set_bucket_policy('my-bucketname', json.dumps(policy_READ_ONLY))
57+
client.set_bucket_policy('my-bucketname', json.dumps(policy_read_only))
5858

5959
# Set bucket policy to read-write for bucket 'my-bucketname'
60-
policy_READ_WRITE = {
60+
policy_read_write = {
6161
"Version": "2012-10-17",
6262
"Statement": [
6363
{
@@ -94,10 +94,10 @@
9494
}
9595
]
9696
}
97-
client.set_bucket_policy('my-bucketname', json.dumps(policy_READ_WRITE))
97+
client.set_bucket_policy('my-bucketname', json.dumps(policy_read_write))
9898

9999
# Set bucket policy to write-only for bucket 'my-bucketname'
100-
policy_WRITE_ONLY = {
100+
policy_write_only = {
101101
"Version":"2012-10-17",
102102
"Statement":[
103103
{
@@ -126,7 +126,7 @@
126126
}
127127
]
128128
}
129-
client.set_bucket_policy('my-bucketname', json.dumps(policy_WRITE_ONLY))
129+
client.set_bucket_policy('my-bucketname', json.dumps(policy_write_only))
130130

131131
except ResponseError as err:
132132
print(err)

0 commit comments

Comments
 (0)