2 parents 78308c5 + 98b8ea5 commit 3833e38Copy full SHA for 3833e38
1 file changed
netbox_agent/network.py
@@ -418,7 +418,7 @@ def create_or_update_netbox_network_cards(self):
418
# delete unknown interface
419
nb_nics = list(self.get_netbox_network_cards())
420
local_nics = [x["name"] for x in self.nics]
421
- for nic in nb_nics:
+ for nic in list(nb_nics):
422
if nic.name not in local_nics:
423
logging.info(
424
"Deleting netbox interface {name} because not present locally".format(
0 commit comments