Skip to content

Commit

Permalink
Initialised variable do None
Browse files Browse the repository at this point in the history
  • Loading branch information
Aboisier committed Apr 1, 2019
1 parent df5ed0f commit d634d08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ScoutSuite/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ async def run_scan(args):

print_info('Launching Scout')

credentials = None
if not args.get('fetch_local'):
auth_strategy = get_authentication_strategy(args.get('provider'))
credentials = auth_strategy.authenticate(profile=args.get('profile'),
Expand Down
3 changes: 2 additions & 1 deletion ScoutSuite/providers/aws/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def __init__(self, profile='default', report_dir=None, timestamp=None, services=
self.provider_name = 'Amazon Web Services'

self.credentials = kwargs['credentials']
self.aws_account_id = get_aws_account_id(self.credentials)
if self.credentials:
self.aws_account_id = get_aws_account_id(self.credentials)

super(AWSProvider, self).__init__(report_dir, timestamp,
services, skipped_services, thread_config)
Expand Down

0 comments on commit d634d08

Please sign in to comment.