Fix YAML warning

Fri, 30 Oct 2020 14:09:39 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 30 Oct 2020 14:09:39 -0500
changeset 132
8fe3cf6487f8
parent 131
d5351f9fe8b8
child 133
ec8014a2ee7a

Fix YAML warning

borgend/config.py file | annotate | diff | comparison | revisions
--- a/borgend/config.py	Tue Apr 21 10:12:19 2020 -0500
+++ b/borgend/config.py	Fri Oct 30 14:09:39 2020 -0500
@@ -155,7 +155,7 @@
 logger.info("Reading configuration %s missing" % locations.cfgfile)
 
 with io.open(locations.cfgfile, 'r') as file:
-    settings=expand_env(yaml.load(file), os.environ);
+    settings=expand_env(yaml.load(file, Loader=yaml.FullLoader), os.environ);
 
 #
 # Verify basic settings

mercurial