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
|
:return: List of (user/pass), possibly empty
|
||||||
"""
|
"""
|
||||||
results = [self.extractor(filepath) for filepath in self.file_list]
|
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))
|
LOG.info("Found %d Azure VM access configuration file", len(results))
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue