From 993e0f057e84cc0c8357fcb3b6cf0e48f077f258 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Thu, 19 Dec 2013 14:19:14 -0500 Subject: [PATCH] Allow for no role dependencies in role metadata --- lib/ansible/playbook/play.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index b42b3dc6f2f..a2fdc643f22 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -203,6 +203,8 @@ class Play(object): data = utils.parse_yaml_from_file(meta) if data: dependencies = data.get('dependencies',[]) + if dependencies is None: + dependencies = [] for dep in dependencies: allow_dupes = False (dep_path,dep_vars) = self._get_role_path(dep)