Skip to content

Commit

Permalink
Merge pull request #2216 from xuing/patch-1
Browse files Browse the repository at this point in the history
Update config.py to fix YAMLLoadWarning
  • Loading branch information
Qmando authored May 22, 2019
2 parents 09a3eb6 + 2647c7d commit 906d98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elastalert/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from util import unixms_to_dt

# schema for rule yaml
rule_schema = jsonschema.Draft4Validator(yaml.load(open(os.path.join(os.path.dirname(__file__), 'schema.yaml'))))
rule_schema = jsonschema.Draft4Validator(yaml.load(open(os.path.join(os.path.dirname(__file__), 'schema.yaml')), Loader=yaml.FullLoader))

# Required global (config.yaml) and local (rule.yaml) configuration options
required_globals = frozenset(['run_every', 'rules_folder', 'es_host', 'es_port', 'writeback_index', 'buffer_time'])
Expand Down

0 comments on commit 906d98c

Please sign in to comment.