Test error handling for itf creation.

This commit is contained in:
Pierre Lannoy 2025-08-18 18:36:43 +02:00
commit 93b540f643

View file

@ -450,6 +450,7 @@ class Network(object):
) )
interface = self.create_netbox_nic(nic) interface = self.create_netbox_nic(nic)
if interface:
nic_update = 0 nic_update = 0
if nic['name'] != interface.name: if nic['name'] != interface.name:
logging.info('Updating interface {interface} name to: {name}'.format( logging.info('Updating interface {interface} name to: {name}'.format(