Skip to content

Commit 596dc0d

Browse files
brandonshoughhush-hush
authored andcommitted
Added loader argument for yaml.load
1 parent 6ea441d commit 596dc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _load_conf(self, file_path):
5656
conf_dict = {}
5757
if os.path.isfile(file_path):
5858
with open(file_path, 'r') as conf_file:
59-
conf_dict = yaml.load(conf_file)
59+
conf_dict = yaml.load(conf_file, Loader=yaml.FullLoader)
6060

6161
api_key = os.environ.get('DATADOG_API_KEY', conf_dict.get('api_key', ''))
6262
dd_url = os.environ.get('DATADOG_URL', conf_dict.get('url', ''))

0 commit comments

Comments
 (0)