mirror of
https://github.com/bb-Ricardo/netbox-sync.git
synced 2026-05-04 08:19:50 -05:00
fixes error if nicOrder status is None #117
This commit is contained in:
@@ -1477,9 +1477,9 @@ class VMWareHandler(SourceBase):
|
||||
|
||||
nic_order = grab(pgroup, "computedPolicy.nicTeaming.nicOrder")
|
||||
pgroup_nics = list()
|
||||
if nic_order.activeNic is not None:
|
||||
if grab(nic_order, "activeNic") is not None:
|
||||
pgroup_nics += nic_order.activeNic
|
||||
if nic_order.standbyNic is not None:
|
||||
if grab(nic_order, "standbyNic") is not None:
|
||||
pgroup_nics += nic_order.standbyNic
|
||||
|
||||
self.network_data["host_pgroup"][name][pgroup_name] = {
|
||||
|
||||
Reference in New Issue
Block a user