mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-22 04:40:43 +00:00
fix: skip missing yaml file (#605)
This commit is contained in:
parent
82398da75d
commit
dfa10dd209
@ -52,7 +52,7 @@ def parse_yaml(yamlfile):
|
|||||||
|
|
||||||
data = ruamel.yaml.YAML(typ="rt").load(yamlfile)
|
data = ruamel.yaml.YAML(typ="rt").load(yamlfile)
|
||||||
_yaml_remove_comments(data)
|
_yaml_remove_comments(data)
|
||||||
data = defaultdict(dict, data)
|
data = defaultdict(dict, data or {})
|
||||||
except (
|
except (
|
||||||
ruamel.yaml.parser.ParserError,
|
ruamel.yaml.parser.ParserError,
|
||||||
ruamel.yaml.scanner.ScannerError,
|
ruamel.yaml.scanner.ScannerError,
|
||||||
|
Loading…
Reference in New Issue
Block a user