Skip to content

Fixed an issue that was caused by AWS adding duplicate regions to its regional table. - #289

Open
kcantrel wants to merge 1 commit into
mainfrom
fix_duplicate_regions
Open

kcantrel wants to merge 1 commit into
mainfrom
fix_duplicate_regions

Conversation

@kcantrel

@kcantrel kcantrel commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The region checks in three scripts eagerly invoke inArray even for nonmatching regions, creating unnecessary subshells before resource queries begin.

1 open issue
What changed in this PR

This PR prevents duplicate AWS regional-table entries from causing repeated region queries in the FSx for NetApp ONTAP listing utilities.

Changes:

  • Adds region membership checks to avoid duplicate regions.
  • Preserves a preconfigured excludeRegions value.
  • Suppresses output from background-job wait calls.
File Description
Management-Utilities/​fsx-ontap-aws-cli-scripts/​list_fsxn_volumes Adds region deduplication, preserves exclusions, and silences wait output for volume listings.
Management-Utilities/​fsx-ontap-aws-cli-scripts/​list_fsxn_svms Applies the same changes to storage virtual machine listings.
Management-Utilities/​fsx-ontap-aws-cli-scripts/​list_fsxn_filesystems Applies the same changes to filesystem listings.

Review effort: Balanced

#
# Since for some crazy reason AWS decided to add duplicate entries in their
# regional table, we need to make sure we don't add duplicates to our list of regions.
if [ $reg == $fsxnReg -a $(inArray $reg "${regions[*]}") == "false" ]; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants