File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ const errorLog = new AwsErrorLog(serviceName)
28
28
const endpoint = initTestEndpoint ( serviceName )
29
29
const MAX_ITEMS = 25
30
30
31
- const listEnvironmentsForRegion = async ( {
32
- cloud9,
31
+ const listEnvironmentsForRegion = async ( {
32
+ cloud9,
33
33
resolveRegion,
34
34
} : {
35
35
cloud9 : Cloud9
@@ -150,7 +150,7 @@ export default async ({
150
150
[ region : string ] : RawAwsCloud9Environment [ ]
151
151
} > =>
152
152
new Promise ( async resolve => {
153
- const cloud9Data : RawAwsCloud9Environment [ ] = [ ]
153
+ let cloud9Data : RawAwsCloud9Environment [ ] = [ ]
154
154
const environmentPromises = [ ]
155
155
const regionPromises = [ ]
156
156
const tagsPromises = [ ]
@@ -208,6 +208,8 @@ export default async ({
208
208
logger . debug ( lt . gettingCloud9Environments )
209
209
await Promise . all ( environmentPromises )
210
210
211
+ // remove environments that don't have an arn (failed to get attributes)
212
+ cloud9Data = cloud9Data . filter ( ( { arn } ) => ! ! arn )
211
213
// get all tags for each environment
212
214
cloud9Data . map ( ( { arn, region } , idx ) => {
213
215
const cloud9 = new Cloud9 ( { ...config , region, endpoint } )
You can’t perform that action at this time.
0 commit comments