mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-21 12:20:40 +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)
|
||||
_yaml_remove_comments(data)
|
||||
data = defaultdict(dict, data)
|
||||
data = defaultdict(dict, data or {})
|
||||
except (
|
||||
ruamel.yaml.parser.ParserError,
|
||||
ruamel.yaml.scanner.ScannerError,
|
||||
|
Loading…
Reference in New Issue
Block a user