Skip to content

Commit

Permalink
return back
Browse files Browse the repository at this point in the history
  • Loading branch information
GuideGlyph committed Dec 25, 2024
1 parent 9b09ce3 commit 83b70b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/modules/vmware_guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1940,11 +1940,7 @@ def configure_network(self, vm_obj):
nic.device.deviceInfo.summary = network_name
nic_change_detected = True
else:
pgs = self.find_network_by_name(network_name)
if len(pgs) == 1:
pg = pgs[0]
else:
pg = find_obj(self.content, [vim.DistributedVirtualPortgroup], network_name)
pg = find_obj(self.content, [vim.DistributedVirtualPortgroup], network_name)
if pg is None or nic.device.backing.port.portgroupKey != pg.key:
nic.device.deviceInfo.summary = network_name
nic_change_detected = True
Expand Down

0 comments on commit 83b70b7

Please sign in to comment.