mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-21 20:30:43 +00:00
fix: replace deprecated ruamel.yaml.safe_load (#596)
This commit is contained in:
parent
593a90ff10
commit
9536cd400d
@ -268,7 +268,7 @@ class Config:
|
|||||||
with open(config, encoding="utf8") as stream:
|
with open(config, encoding="utf8") as stream:
|
||||||
s = stream.read()
|
s = stream.read()
|
||||||
try:
|
try:
|
||||||
file_dict = ruamel.yaml.safe_load(s)
|
file_dict = ruamel.yaml.YAML(typ="safe", pure=True).load(s)
|
||||||
except (
|
except (
|
||||||
ruamel.yaml.composer.ComposerError,
|
ruamel.yaml.composer.ComposerError,
|
||||||
ruamel.yaml.scanner.ScannerError,
|
ruamel.yaml.scanner.ScannerError,
|
||||||
|
Loading…
Reference in New Issue
Block a user