s3_commandhelper.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:orca 作者: bdastur 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号