Skip to content
Snippets Groups Projects
Commit a723df61 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

* Fixed config comma typo

 * Included Warden client config - can be both unicode or str
parent 7897c2d4
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
"nogroup": null, "nogroup": null,
"tag": null, "tag": null,
"notag": ["Honeypot"] "notag": ["Honeypot"]
} },
// Optional information about detector to be prepended into Idea Node array // Optional information about detector to be prepended into Idea Node array
"node": { "node": {
"Name": "cz.example.warden.test_receiver", "Name": "cz.example.warden.test_receiver",
......
...@@ -335,7 +335,7 @@ def get_configs(): ...@@ -335,7 +335,7 @@ def get_configs():
# Allow inline or external Warden config # Allow inline or external Warden config
wconfig = config.get("warden", "warden_client.cfg") wconfig = config.get("warden", "warden_client.cfg")
if isinstance(wconfig, str): if isinstance(wconfig, basestring):
wconfig = read_cfg(wconfig) wconfig = read_cfg(wconfig)
fconfig = config.get(args.func, {}) fconfig = config.get(args.func, {})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment