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)