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:
parent
d971a53f9e
commit
993e0f057e
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue