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.
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.