mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-06-01 08:00:04 +02:00
fix: check for non-empty loop_type in CheckDeprecatedBareVars
This commit is contained in:
parent
9a9bf37702
commit
96500886b1
|
@ -42,6 +42,9 @@ class CheckDeprecatedBareVars(StandardBase):
|
||||||
for task in tasks:
|
for task in tasks:
|
||||||
loop_type = next((key for key in task if key.startswith("with_")), None)
|
loop_type = next((key for key in task if key.startswith("with_")), None)
|
||||||
|
|
||||||
|
if not loop_type:
|
||||||
|
continue
|
||||||
|
|
||||||
if loop_type in [
|
if loop_type in [
|
||||||
"with_items",
|
"with_items",
|
||||||
"with_nested",
|
"with_nested",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user