Skip to content

Commit f654c20

Browse files
committed
allow !ENV in password_file
1 parent 22d6ea6 commit f654c20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encryptcontent/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import logging
66
import json
77
import math
8-
import yaml
8+
from mkdocs.utils.yaml import get_yaml_loader, yaml_load
99
from pathlib import Path
1010
from os.path import exists
1111
from jinja2 import Template
@@ -483,7 +483,7 @@ def on_config(self, config, **kwargs):
483483
os._exit(1)
484484
password_file = os.path.join(config_path, self.config['password_file'])
485485
with open(password_file, 'r') as stream:
486-
self.setup['password_inventory'] = yaml.safe_load(stream)
486+
self.setup['password_inventory'] = yaml_load(stream)
487487
elif self.config['password_inventory']:
488488
self.setup['password_inventory'] = self.config['password_inventory']
489489

0 commit comments

Comments
 (0)