gbdx_cloud_harness/services/account_storage_service.py
def list(self, s3_folder='', full_key_data=False):
        """Get a list of keys for the accounts"""
        if not s3_folder.startswith('/'):
            s3_folder = '/' + s3_folder

        s3_prefix = self.prefix + s3_folder

        bucket_data = self.client.list_objects(Bucket=self.bucket, Prefix=s3_prefix)

        if full_key_data:
            return bucket_data['Contents']
        else:
            return [k['Key'] for k in bucket_data['Contents']]
def list(self, s3_folder='', full_key_data=False):
        if not s3_folder.startswith('/'):
            s3_folder = '/' + s3_folder

        s3_prefix = self.prefix + s3_folder

        bucket_data = self.client.list_objects(Bucket=self.bucket, Prefix=s3_prefix)

        if full_key_data:
            return bucket_data['Contents']
        else:
            return [k['Key'] for k in bucket_data['Contents']]
def list ( self , s3_folder = '' , full_key_data = False ) : if not s3_folder . startswith ( '/' ) : s3_folder = '/' + s3_folder s3_prefix = self . prefix + s3_folder bucket_data = self . client . list_objects ( Bucket = self . bucket , Prefix = s3_prefix ) if full_key_data : return bucket_data [ 'Contents' ] else : return [ k [ 'Key' ] for k in bucket_data [ 'Contents' ] ]
Get a list of keys for the accounts
Get a list of keys for the accounts