1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Allow for no role dependencies in role metadata

This commit is contained in:
James Tanner 2013-12-19 14:19:14 -05:00
parent d971a53f9e
commit 993e0f057e

View file

@ -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)