improving string formatting to avoid dangling white spaces and new lines

This commit is contained in:
Hossein Shafagh 2020-01-16 13:45:13 -08:00
parent 7f73417bda
commit d6f41b6a99
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class AWSSourcePlugin(SourcePlugin):
if not regions:
regions = ec2.get_regions(account_number=account_number)
else:
regions = regions.split(",")
regions = "".join(regions.split()).split(",")
for region in regions:
elbs = elb.get_all_elbs(account_number=account_number, region=region)