Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- bucket_tagging = s3.get_bucket_tagging(Bucket=bucketname)
- tag_set = bucket_tagging['TagSet']
- for tag in tag_set:
- if (tag.name == "public-allowed"):
- if (tag.value == "True"):
- return True
- break
- except Exception, e:
- print(e.message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement