Icinga / ansible-collection-icinga

Collection to setup and manage components of the Icinga software stack
Apache License 2.0
46 stars 35 forks source link

Bug: Index out of range with empty lists #352

Closed lucagubler closed 4 days ago

lucagubler commented 4 days ago

Hi all

I'm facing a bug when using empty lists. I have a script that fetches all interface from a device from NetBox. For one device we don't have any interfaces (maybe that needs to be fixed in NetBox), but the problem is that the script failed. The parser tries to iterate over this empty list and pop an element, which doesn't exist.