Skip to content

Commit 612fec0

Browse files
Merge pull request #90 from ericzinnikas/fix-getregions
[aws inventory] fix scanning all regions
2 parents 9fa3ff7 + b914777 commit 612fec0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bash/lw_aws_inventory.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,8 @@ function calculateInventory {
284284
if [ -z "$regionsToScan" ]
285285
then
286286
# Regions to scan not set, get list from AWS
287-
regionsToScan=$(getRegions)
287+
regionsToScan=$(getRegions "$profile_string")
288288
fi
289-
290289
for r in $regionsToScan; do
291290
if [[ $PRINT_CSV_DETAILS == "true" ]]
292291
then

0 commit comments

Comments
 (0)