mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
yaml.load -> yaml.safe_load
This commit is contained in:
parent
f1444bc36f
commit
7ca637d8f8
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
WIP
|
|
||||||
Pythonic declaration of mDNS .local domains for YunoHost
|
Pythonic declaration of mDNS .local domains for YunoHost
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -101,7 +100,7 @@ if __name__ == '__main__':
|
||||||
###
|
###
|
||||||
|
|
||||||
with open('/etc/yunohost/mdns.yml', 'r') as f:
|
with open('/etc/yunohost/mdns.yml', 'r') as f:
|
||||||
config = yaml.load(f) or {}
|
config = yaml.safe_load(f) or {}
|
||||||
updated = False
|
updated = False
|
||||||
|
|
||||||
required_fields = ["interfaces", "domains"]
|
required_fields = ["interfaces", "domains"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue