From 08be07fffae5de7fc7124675826971be2c04d81d Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Fri, 28 Jun 2024 16:16:11 +0100 Subject: [PATCH] use the right array --- lib/aws-efs.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/aws-efs.js b/lib/aws-efs.js index 45e6cbf..fd41453 100644 --- a/lib/aws-efs.js +++ b/lib/aws-efs.js @@ -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 = '' @@ -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 - } + }) } }