diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-09-05 09:40:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 09:40:13 -0400 |
commit | 4acf08d76c406c34ffa8d305a3413d8fd68a4d45 (patch) | |
tree | aa526e15352f359a3820fb3fe74a7e711c7e9b4b | |
parent | 91a2cac8f5a5ae438b034e3712525480ce749fa6 (diff) | |
parent | 2907ea9e47c2d7e5243dbdf8f228ea5263f292af (diff) | |
download | openshift-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |