From cdbacd0991ce53715af9992d52b250a5aa4e87a6 Mon Sep 17 00:00:00 2001 From: jgaunt Date: Sat, 9 Nov 2019 21:19:07 -0500 Subject: [PATCH] Update 'freenas_network_unlock.py' --- freenas_network_unlock.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/freenas_network_unlock.py b/freenas_network_unlock.py index eb2f6f2..3009b6b 100644 --- a/freenas_network_unlock.py +++ b/freenas_network_unlock.py @@ -2,12 +2,10 @@ import requests # For the api calls import platform # For getting the operating system name import subprocess # For executing a shell command import yaml # For parsing the yaml config file +import config # configuration file -with open("config.yml", 'r') as ymlfile: - cfg = yaml.safe_load(ymlfile) +print(config) -for section in cfg: - print(section) exit() def ping(host):