diff --git a/plugins/lookup/apt_repositories.py b/plugins/lookup/apt_repositories.py index 3ac861a7a..69642d0ed 100644 --- a/plugins/lookup/apt_repositories.py +++ b/plugins/lookup/apt_repositories.py @@ -21,14 +21,10 @@ import os.path import re -import logging class LookupModule(LookupBase): def run(self, terms, variables=None, **kwargs): - # Logging - logging.basicConfig(level=logging.INFO) - log = logging.getLogger("apt_repo") results = [] @@ -139,8 +135,8 @@ def run(self, terms, variables=None, **kwargs): # Merge by index key for item in items: itemFound = False - # Comes from variables for i, result in enumerate(results): + # Comes from exclusives or legacy_files if 'file' in result: file_basename = os.path.basename(result['file']) file_name = os.path.splitext(file_basename)[0]