moved import of parser to right before the register call, to avoid circular imports

This commit is contained in:
Daniel Sagi
2020-06-19 13:35:56 +03:00
parent 5592a3ea81
commit eb45ded19d
+2 -1
View File
@@ -1,7 +1,6 @@
import pluggy
from kube_hunter.plugins import hookspecs
from kube_hunter.conf import parser
hookimpl = pluggy.HookimplMarker("kube-hunter")
@@ -17,5 +16,7 @@ def initialize_plugin_manager():
pm.load_setuptools_entrypoints("kube_hunter")
# default registration of builtin implemented plugins
from kube_hunter.conf import parser
pm.register(parser)
return pm