forked from p15670423/monkey
Fixed scoutsuite bug that caused bad exception handling
This commit is contained in:
parent
d2a8597903
commit
672c19ef0d
|
@ -1 +1 @@
|
|||
Subproject commit 6d7178d7a1249024bea0ec20985f73aa35ab4809
|
||||
Subproject commit b806593875e7927f1b1b20cb5bc27da0025dbb51
|
|
@ -250,7 +250,7 @@ class InfectionMonkey(object):
|
|||
LOG.debug("Running with depth: %d" % WormConfiguration.depth)
|
||||
|
||||
def collect_system_info_if_configured(self):
|
||||
LOG.debug("Calling system info collection")
|
||||
LOG.debug("Calling for system info collection")
|
||||
system_info_collector = SystemInfoCollector()
|
||||
system_info = system_info_collector.get_info()
|
||||
SystemInfoTelem(system_info).send()
|
||||
|
|
|
@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
|
|||
def scan_cloud_security(cloud_type: PROVIDERS):
|
||||
try:
|
||||
results = run_scoutsuite(cloud_type.value)
|
||||
if 'error' in results and results['error']:
|
||||
if isinstance(results, dict) and 'error' in results and results['error']:
|
||||
raise Exception(results['error'])
|
||||
send_results(results)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue