fix: check for non-empty loop_type in CheckDeprecatedBareVars

This commit is contained in:
Robert Kaussow 2023-04-26 09:28:48 +02:00
parent 9a9bf37702
commit 96500886b1
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ class CheckDeprecatedBareVars(StandardBase):
for task in tasks:
loop_type = next((key for key in task if key.startswith("with_")), None)
if not loop_type:
continue
if loop_type in [
"with_items",
"with_nested",