Skip to content

Commit

Permalink
Fixed credentials none on local runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aboisier committed Apr 1, 2019
1 parent d634d08 commit 1c5bc50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ScoutSuite/providers/azure/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def __init__(self, project_id=None, organization_id=None,
self.services_config = AzureServicesConfig

self.credentials = kwargs['credentials']
self.aws_account_id = self.credentials.aws_account_id # TODO : Get rid of aws_account_id
if self.credentials:
self.aws_account_id = self.credentials.aws_account_id # TODO : Get rid of aws_account_id

super(AzureProvider, self).__init__(report_dir, timestamp, services, skipped_services, thread_config)

Expand Down
3 changes: 2 additions & 1 deletion ScoutSuite/providers/gcp/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def __init__(self, project_id=None, folder_id=None, organization_id=None, all_pr

self.services_config = GCPServicesConfig
self.credentials = kwargs['credentials']
self._set_aws_account_id()
if self.credentials:
self._set_aws_account_id()

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

0 comments on commit 1c5bc50

Please sign in to comment.