summaryrefslogtreecommitdiff
path: root/cloudinit/UserDataHandler.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-06-21 11:37:22 -0400
committerScott Moser <smoser@ubuntu.com>2012-06-21 11:37:22 -0400
commit74f09aacd76eb62dd18a265b097378b55ae0fb50 (patch)
tree577890a21a3f7c9381a6e686b4fd513c01ee17df /cloudinit/UserDataHandler.py
parent142fad2a9a9acb702793c33269e04d8d01fa00d6 (diff)
downloadvyos-cloud-init-74f09aacd76eb62dd18a265b097378b55ae0fb50.tar.gz
vyos-cloud-init-74f09aacd76eb62dd18a265b097378b55ae0fb50.zip
use yaml.safe_load rather than yaml.load
LP: #1015818
Diffstat (limited to 'cloudinit/UserDataHandler.py')
-rw-r--r--cloudinit/UserDataHandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/UserDataHandler.py b/cloudinit/UserDataHandler.py
index ec914480..bf694a8e 100644
--- a/cloudinit/UserDataHandler.py
+++ b/cloudinit/UserDataHandler.py
@@ -94,7 +94,7 @@ def do_include(content, appendmsg):
def explode_cc_archive(archive, appendmsg):
- for ent in yaml.load(archive):
+ for ent in yaml.safe_load(archive):
# ent can be one of:
# dict { 'filename' : 'value', 'content' : 'value', 'type' : 'value' }
# filename and type not be present