From fa7d30af4a01cbc5f5acf244fa57d7e12b081f5d Mon Sep 17 00:00:00 2001 From: jgaunt Date: Sat, 9 Nov 2019 20:52:57 -0500 Subject: [PATCH] Update 'freenas_network_unlock.py' --- freenas_network_unlock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freenas_network_unlock.py b/freenas_network_unlock.py index 986a7cf..eb2f6f2 100644 --- a/freenas_network_unlock.py +++ b/freenas_network_unlock.py @@ -4,7 +4,7 @@ import subprocess # For executing a shell command import yaml # For parsing the yaml config file with open("config.yml", 'r') as ymlfile: - cfg = yaml.load(ymlfile) + cfg = yaml.safe_load(ymlfile) for section in cfg: print(section)