fixes error if nicOrder status is None #117

This commit is contained in:
ricardo.bartels@telekom.de
2021-11-10 23:09:40 +01:00
parent c26b726ba6
commit 815fb4106f
+2 -2
View File
@@ -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] = {