NFVBENCH-138 Use yaml.safe_load() instead of unsafe yaml load
[nfvbench.git] / nfvbenchvm / dib / elements / nfvbenchvm / post-install.d / 51-cloudcfg-edit
index 3e4647a..dc51030 100755 (executable)
@@ -5,7 +5,7 @@ cloudcfg = "/etc/cloud/cloud.cfg"
 user = "cloud-user"
 
 with open(cloudcfg) as f:
-  cfg = yaml.load(f)
+  cfg = yaml.safe_load(f)
 
 try:
   if cfg['system_info']['default_user']['name']: