Closed dgarros closed 10 months ago
Hi @dgarros,
Thanks for the detailed info! I can reproduce the error on 2.1.6. It should check the len(value) first, Thank you for finding the issue! I will fix it in the upcoming release.
Hi @dgarros
The error had been fixed in the fortios collection. I will close this issue at this moment and feel free to reopen it or open a new issue if you still have any questions.
I'm getting an
list index out of range
error when I execute the modulefortios_firewall_policy
Looks like the error is coming from this code
I was able to fix it by replacing the line 78 with
if len(value) and type(value[0]) == dict:
instead ofif type(value[0]) == dict:
I'd be happy to send a PR but not sure how that works for this project
Environment
Inputs