mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
469aa0c26a
commit
37ed756d66
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable):
|
||||||
return ds
|
return ds
|
||||||
|
|
||||||
role_name = ds.get('role', ds.get('name'))
|
role_name = ds.get('role', ds.get('name'))
|
||||||
if not role_name:
|
if not role_name or not isinstance(role_name, string_types):
|
||||||
raise AnsibleError('role definitions must contain a role name', obj=ds)
|
raise AnsibleError('role definitions must contain a role name', obj=ds)
|
||||||
|
|
||||||
return role_name
|
return role_name
|
||||||
|
|
Loading…
Reference in a new issue