mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-08 02:01:31 -07:00
helper: raise Exception when ds is not dict type (#53936)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
19e1b4de58
commit
83be129923
2 changed files with 6 additions and 1 deletions
|
@ -102,7 +102,7 @@ def load_list_of_tasks(ds, play, block=None, role=None, task_include=None, use_h
|
|||
task_list = []
|
||||
for task_ds in ds:
|
||||
if not isinstance(task_ds, dict):
|
||||
AnsibleAssertionError('The ds (%s) should be a dict but was a %s' % (ds, type(ds)))
|
||||
raise AnsibleAssertionError('The ds (%s) should be a dict but was a %s' % (ds, type(ds)))
|
||||
|
||||
if 'block' in task_ds:
|
||||
t = Block.load(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue