From a502eb730cb7f5d898769d6958a03c28878332bb Mon Sep 17 00:00:00 2001 From: ahothan Date: Sat, 22 Jun 2019 12:21:38 -0700 Subject: NFVBENCH-138 Use yaml.safe_load() instead of unsafe yaml load Change-Id: Ifa1796b8dbc1bc5d92dd765a18b9b8022d3b3289 Signed-off-by: ahothan --- nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/51-cloudcfg-edit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nfvbenchvm/dib/elements/nfvbenchvm') diff --git a/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/51-cloudcfg-edit b/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/51-cloudcfg-edit index 3e4647a..dc51030 100755 --- a/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/51-cloudcfg-edit +++ b/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/51-cloudcfg-edit @@ -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']: -- cgit 1.2.3-korg