Skip to content

Commit

Permalink
WATools region variable handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kuettai committed Oct 30, 2024
1 parent 2aa370a commit 38e9930
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frameworks/helper/WATools.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def preCheck(self, params):
params['region'] = Config.get('REGIONS_SELECTED')[0]

print("*** [WATool] Attempting to deploy WA Tools in this region: {}".format(params['region']))
self.region = params['region']

return True

Expand Down Expand Up @@ -76,13 +77,13 @@ def createReportIfNotExists(self):

if self.waInfo['isExists'] == True:
return True

wLargs = {
'WorkloadName': workload_name,
'Description': 'Auto generated by ServiceScreener',
'Environment': 'PRODUCTION',
'AccountIds': [self.stsInfo['Account']],
'AwsRegions': Config.get('REGIONS_SELECTED'),
'AwsRegions': self.region,
'ReviewOwner': self.stsInfo['Arn'],
'Lenses': [self.waInfo['LensesAlias']]
}
Expand Down

0 comments on commit 38e9930

Please sign in to comment.