summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-09-05 09:40:13 -0400
committerGitHub <noreply@github.com>2017-09-05 09:40:13 -0400
commit4acf08d76c406c34ffa8d305a3413d8fd68a4d45 (patch)
treeaa526e15352f359a3820fb3fe74a7e711c7e9b4b
parent91a2cac8f5a5ae438b034e3712525480ce749fa6 (diff)
parent2907ea9e47c2d7e5243dbdf8f228ea5263f292af (diff)
downloadopenshift-4acf08d76c406c34ffa8d305a3413d8fd68a4d45.tar.gz
openshift-4acf08d76c406c34ffa8d305a3413d8fd68a4d45.tar.bz2
openshift-4acf08d76c406c34ffa8d305a3413d8fd68a4d45.tar.xz
openshift-4acf08d76c406c34ffa8d305a3413d8fd68a4d45.zip
Merge pull request #5300 from mtnbikenc/fix-ansible_syntax-check
Fix ansible_syntax check
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
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