def display_s3_bucket_validations(self, outputformat='json'):
'''
Display the list of S3 buckets and the validation results.
'''
s3client = aws_service.AwsService('s3')
bucketlist = s3client.service.list_buckets()
#s3client.service.populate_bucket_tagging(bucketlist)
#s3client.service.populate_bucket_validation(bucketlist)
newbucketlist = s3client.service.populate_bucket_fast("tagging",
bucketlist)
newbucketlist = s3client.service.populate_bucket_fast("validation",
newbucketlist)
if outputformat == "json":
pprinter = pprint.PrettyPrinter()
pprinter.pprint(newbucketlist)
else:
self.display_s3_bucket_validations_table(newbucketlist)
评论列表
文章目录