mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-20 08:06:24 +00:00
Finished with the left of the PR comments.
This commit is contained in:
@@ -48,12 +48,8 @@ class Collector(object):
|
||||
|
||||
def execute(self):
|
||||
"""function is called only when collecting data"""
|
||||
services_lock.acquire()
|
||||
global services
|
||||
services_lock.release()
|
||||
vulnerabilities_lock.acquire()
|
||||
global vulnerabilities
|
||||
vulnerabilities_lock.release()
|
||||
bases = self.event.__class__.__mro__
|
||||
if Service in bases:
|
||||
services_lock.acquire()
|
||||
|
||||
@@ -4,7 +4,6 @@ from prettytable import ALL, PrettyTable
|
||||
|
||||
from __main__ import config
|
||||
from collector import services, vulnerabilities,services_lock, vulnerabilities_lock
|
||||
import threading
|
||||
|
||||
EVIDENCE_PREVIEW = 40
|
||||
MAX_TABLE_WIDTH = 20
|
||||
|
||||
Reference in New Issue
Block a user