forked from p15670423/monkey
Add filtering of invalid results, otherwise it'll propagate
This commit is contained in:
parent
b06d92331d
commit
095510e8e2
|
@ -30,6 +30,7 @@ class AzureCollector(object):
|
|||
:return: List of (user/pass), possibly empty
|
||||
"""
|
||||
results = [self.extractor(filepath) for filepath in self.file_list]
|
||||
results = [x for x in results if x]
|
||||
LOG.info("Found %d Azure VM access configuration file", len(results))
|
||||
return results
|
||||
|
||||
|
|
Loading…
Reference in New Issue