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