From 74f09aacd76eb62dd18a265b097378b55ae0fb50 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 21 Jun 2012 11:37:22 -0400 Subject: use yaml.safe_load rather than yaml.load LP: #1015818 --- cloudinit/UserDataHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/UserDataHandler.py') 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 -- cgit v1.2.3