Skip to content

Commit

Permalink
use the right array
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Jun 28, 2024
1 parent 2b06ee3 commit 08be07f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/aws-efs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ async function lookupStorageClass (tag) {
const fsList = await client.send(fsCommand)
console.log(fsList)

const fileSystems = []

for (let i = 0; i< fsList.FileSystems.length; i++) {
let found = false
let storageClass = ''
Expand All @@ -30,10 +32,11 @@ async function lookupStorageClass (tag) {
// console.log(apParams)
const apListCommand = new DescribeAccessPointsCommand(apParams)
const apList = await client.send(apListCommand)
fileSystems[fsList.FileSystems[i].FileSystemId] = {
// fileSystems[fsList.FileSystems[i].FileSystemId]
fileSystems.push({
apCount: apList.AccessPoints.length,
storageClass
}
})
}

}
Expand Down

0 comments on commit 08be07f

Please sign in to comment.