File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
packages/artillery/lib/platform/aws-ecs/legacy Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1-
2-
31const _debug = require ( 'debug' ) ( 'artillery:util' ) ;
42
53const chalk = require ( 'chalk' ) ;
@@ -33,7 +31,8 @@ const supportedRegions = [
3331 'il-central-1' ,
3432 'sa-east-1' ,
3533 'cn-north-1' ,
36- 'cn-northwest-1'
34+ 'cn-northwest-1' ,
35+ 'ap-southeast-5'
3736] ;
3837
3938const getAccountId = require ( '../../aws/aws-get-account-id' ) ;
@@ -60,9 +59,7 @@ async function getBucketName() {
6059}
6160
6261function formatError ( err ) {
63- return (
64- `${ chalk . red ( 'Error' ) } : ${ err . message } ${ err . code ? ` (${ err . code } )` : '' } `
65- ) ;
62+ return `${ chalk . red ( 'Error' ) } : ${ err . message } ${ err . code ? ` (${ err . code } )` : '' } ` ;
6663}
6764
6865async function listAllObjectsWithPrefix ( bucketName , prefix ) {
@@ -77,11 +74,11 @@ async function listAllObjectsWithPrefix(bucketName, prefix) {
7774 MaxKeys : 1000
7875 }
7976 ) ;
80- for await ( const page of paginator ) {
81- if ( page . Contents ) {
82- allObjects . push ( ...page . Contents ) ;
83- }
77+ for await ( const page of paginator ) {
78+ if ( page . Contents ) {
79+ allObjects . push ( ...page . Contents ) ;
8480 }
81+ }
8582
8683 return allObjects ;
8784}
You can’t perform that action at this time.
0 commit comments