1
0
Fork 0

Fix: PyYAML wants a specified loader

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-09-11 19:53:20 +02:00
parent 816fdf2f1a
commit e95471951a
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -27,7 +27,10 @@ def check_service_active(service):
def main():
config = yaml.load(open(Path('~/.config/i3-vpn.json').expanduser()))
config = yaml.load(
open(Path('~/.config/i3-vpn.json').expanduser()),
Loader=yaml.SafeLoader,
)
results = [config['prefix']]
for check in config['checks']: