mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Only import yaml module when config is loaded
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import yaml
|
||||
|
||||
|
||||
def checkSupportedType(meta, artifact_type):
|
||||
@@ -24,5 +23,6 @@ def loadMetadata(file):
|
||||
|
||||
|
||||
def loadConfig(path):
|
||||
import yaml
|
||||
with open(str(path), "r") as conffile:
|
||||
return yaml.safe_load(conffile)
|
||||
|
||||
Reference in New Issue
Block a user