From b22e8132dc7719fd7f60a26145edf1335495dee1 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Thu, 21 Jun 2012 10:54:01 -0700 Subject: Use yaml safe_load just incase --- cloudinit/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit') diff --git a/cloudinit/util.py b/cloudinit/util.py index 56c01fab..9c3d7fc7 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -578,7 +578,7 @@ def load_yaml(blob, default=None, allowed=(dict,)): LOG.debug(("Attempting to load yaml from string " "of length %s with allowed root types %s"), len(blob), allowed) - converted = yaml.load(blob) + converted = yaml.safe_load(blob) if not isinstance(converted, allowed): # Yes this will just be caught, but thats ok for now... raise TypeError(("Yaml load allows %s root types," -- cgit v1.2.3