diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-21 10:54:01 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-21 10:54:01 -0700 |
commit | b22e8132dc7719fd7f60a26145edf1335495dee1 (patch) | |
tree | f49890c22f0fc238e2a9ab9fe72059d858d38bd5 /cloudinit/util.py | |
parent | 0c83ff5cb81b6de3028cf90e7dd6aba565682dbf (diff) | |
download | vyos-cloud-init-b22e8132dc7719fd7f60a26145edf1335495dee1.tar.gz vyos-cloud-init-b22e8132dc7719fd7f60a26145edf1335495dee1.zip |
Use yaml safe_load just incase
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
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," |