Update 'freenas_network_unlock.py'
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user