Update 'freenas_network_unlock.py'
This commit is contained in:
@@ -6,8 +6,7 @@ import yaml # For parsing the yaml config file
|
|||||||
with open("config.yml", 'r') as ymlfile:
|
with open("config.yml", 'r') as ymlfile:
|
||||||
cfg = yaml.safe_load(ymlfile)
|
cfg = yaml.safe_load(ymlfile)
|
||||||
|
|
||||||
for section in cfg:
|
print(cfg)
|
||||||
print(section[hostname])
|
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
def ping(host):
|
def ping(host):
|
||||||
|
|||||||
Reference in New Issue
Block a user