From 2907ea9e47c2d7e5243dbdf8f228ea5263f292af Mon Sep 17 00:00:00 2001 From: Russell Teague Date: Tue, 5 Sep 2017 09:20:17 -0400 Subject: Fix ansible_syntax check --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index df2478ff9..c0c08b4d2 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ def find_entrypoint_playbooks(): os.path.join(os.getcwd(), 'playbooks'), exclude_dirs, None, r'\.ya?ml$'): with open(yaml_file, 'r') as contents: - for task in yaml.safe_load(contents): + for task in yaml.safe_load(contents) or {}: if not isinstance(task, dict): # Skip yaml files which are not a dictionary of tasks continue -- cgit v1.2.3