From 8fbe4733bff9a6c370f92818880ec942ba3ca637 Mon Sep 17 00:00:00 2001 From: Brandon Shough Date: Tue, 30 Apr 2019 16:18:57 -0700 Subject: [PATCH] Added loader argument for yaml.load --- datadog_callback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog_callback.py b/datadog_callback.py index 583ac75..4220084 100644 --- a/datadog_callback.py +++ b/datadog_callback.py @@ -56,7 +56,7 @@ def _load_conf(self, file_path): conf_dict = {} if os.path.isfile(file_path): with open(file_path, 'r') as conf_file: - conf_dict = yaml.load(conf_file) + conf_dict = yaml.load(conf_file, Loader=yaml.FullLoader) api_key = os.environ.get('DATADOG_API_KEY', conf_dict.get('api_key', '')) dd_url = os.environ.get('DATADOG_URL', conf_dict.get('url', ''))