N2WS-22672 - Tag scan fails with error "list index out of range"

N2WS-22672 - Tag scan fails with error "list index out of range"

Issue:

Tag scan fails with the following error in cpm_scan.log log

Traceback (most recent call last):

  File "./cpmserver/cpm/backup_tag.py", line 358, in scan_for_aws_resources

  File "./cpmserver/cpm/aws_utils.py", line 3100, in get_regions_enabled_for_account

  File "./cpmserver/cpm/aws_utils.py", line 3096, in get_aws_cloud_main_region

IndexError: list index out of range


Solution:
Patch for v4.2.0 is available and attached to this KB.