Skip to content

Commit 89c80fa

Browse files
committed
Add comments pointing to specific ACL-related methods.
Incorporates feedback from @dhermes.
1 parent c5c9246 commit 89c80fa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

gcloud/storage/bucket.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ def get_metadata(self, field=None, default=None):
349349
:rtype: dict or anything
350350
:returns: All metadata or the value of the specific field.
351351
"""
352+
# Use 'get_acl()' to retrieve the 'acl', and 'get_default_object_acl()'
353+
# to retrieve the 'defaultObjectAcl'.
352354
if field in ('acl', 'defaultObjectAcl'):
353355
return default
354356

gcloud/storage/key.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ def get_metadata(self, field=None, default=None):
342342
:rtype: dict or anything
343343
:returns: All metadata or the value of the specific field.
344344
"""
345+
# Use 'get_acl()' to retrieve the 'acl'.
345346
if field == 'acl':
346347
return default
347348

0 commit comments

Comments
 (0)