We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 391c28f + 63e6d4a commit a73c6b1Copy full SHA for a73c6b1
1 file changed
src/services/iamInstanceProfile/data.ts
@@ -56,15 +56,19 @@ export const listInstancesProfiles = async (
56
})
57
}
58
59
- const { InstanceProfiles = [], IsTruncated, Marker } = data
+ if (!isEmpty(data)) {
60
+ const { InstanceProfiles = [], IsTruncated, Marker } = data
61
- instanceProfileList.push(...InstanceProfiles)
62
+ instanceProfileList.push(...InstanceProfiles)
63
- if (IsTruncated) {
64
- listAllInstanceProfiles(Marker)
+ if (IsTruncated) {
65
+ listAllInstanceProfiles(Marker)
66
+ }
67
+
68
+ resolve(instanceProfileList)
69
70
- resolve(instanceProfileList)
71
+ resolve([])
72
73
)
74
} catch (error) {
0 commit comments