From ca481dd206146f78f2dcade1a80289ef602e10b7 Mon Sep 17 00:00:00 2001 From: Timothy Chavez Date: Fri, 14 Aug 2015 17:33:38 -0500 Subject: [PATCH] Use safe_load when parsing yaml In Openstack I don't think we need to be too concerned with what we're loading from yaml, but another project might? So, in the name of reusability, I propose we use safe_load. Unless of course this actually breaks something :) Change-Id: Ib64f84cba22290a5059e649aee94d65dfa78344f --- grafana_dashboards/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana_dashboards/parser.py b/grafana_dashboards/parser.py index bdc0cea..902c00b 100644 --- a/grafana_dashboards/parser.py +++ b/grafana_dashboards/parser.py @@ -18,4 +18,4 @@ import yaml class YamlParser(object): def load(self, path): - return yaml.load(open(path)) + return yaml.safe_load(open(path))