Skip to content

Commit

Permalink
Improve description of task names (#3314)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Apr 21, 2023
1 parent 6c59bf5 commit 53144e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ansiblelint/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,12 @@ def task_to_str(task: dict[str, Any]) -> str:
]
]

for item in action.get("_raw_params", []):
args.append(str(item))
_raw_params = action.get("_raw_params", [])
if isinstance(_raw_params, list):
for item in _raw_params:
args.append(str(item))
else:
args.append(_raw_params)

return f"{action['__ansible_module__']} {' '.join(args)}"

Expand Down

0 comments on commit 53144e9

Please sign in to comment.