Skip to content

Commit

Permalink
Removed dead code and merged try-catch of private imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vifor2 committed Feb 21, 2019
1 parent fb177c6 commit f9f5cf0
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions ScoutSuite/providers/aws/configs/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@

try:
from ScoutSuite.providers.aws.services.config_private import ConfigConfig
except ImportError:
pass
try:
from ScoutSuite.providers.aws.services.dynamodb_private import DynamoDBConfig
except ImportError:
pass
try:
from ScoutSuite.providers.aws.services.kms_private import KMSConfig
except ImportError:
pass
Expand Down Expand Up @@ -83,37 +77,10 @@ def __init__(self, metadata=None, thread_config=4, **kwargs):

try:
self.config = ConfigConfig(metadata['management']['config'], thread_config)
except NameError as e:
pass
try:
self.dynamodb = DynamoDBConfig(metadata['database']['dynamodb'], thread_config)
except NameError as e:
pass
try:
self.kms = KMSConfig(metadata['security']['kms'], thread_config)
except NameError as e:
pass

def _is_provider(self, provider_name):
return provider_name == 'aws'

# TODO is this ever called?
# def single_service_pass(self):
# pass

# TODO is this ever called?
# def multi_service_pass(self):
# pass

# TODO is this ever called?
# def postprocessing(self):
# for service in self.services:
# method_name = '%s_postprocessing' % service
# if method_name in globals():
# try:
# printInfo('Post-processing %s config...' % format_service_name(service))
# method = globals()[method_name]
# method(aws_config)
# except Exception as e:
# printException(e)
# pass
return provider_name == 'aws'

0 comments on commit f9f5cf0

Please sign in to comment.