diff --git a/infection_monkey/system_info/azure_cred_collector.py b/infection_monkey/system_info/azure_cred_collector.py index d51587840..ad7db0307 100644 --- a/infection_monkey/system_info/azure_cred_collector.py +++ b/infection_monkey/system_info/azure_cred_collector.py @@ -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