Merge pull request #2889 from hosseinsh/better-string-formatting

improved string formatting to  avoid dangling white spaces and new lines
This commit is contained in:
Hossein Shafagh 2020-01-20 14:53:46 -08:00 committed by GitHub
commit 9b1317f4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)