Skip to content

Commit

Permalink
apt_repository module - remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
greedybro committed Apr 4, 2024
1 parent 1703ec6 commit f997f00
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/lookup/apt_repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit f997f00

Please sign in to comment.