From 00fdec1d606a3722c68aaa02f47112b625d35d2a Mon Sep 17 00:00:00 2001 From: Davis Phillips Date: Fri, 3 Feb 2017 12:57:19 -0600 Subject: [PATCH] closes #21011 (#21015) --- lib/ansible/modules/cloud/vmware/vmware_guest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest.py b/lib/ansible/modules/cloud/vmware/vmware_guest.py index ba59d74851..a8871080e6 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest.py @@ -801,6 +801,7 @@ class PyVmomiHelper(object): dvs_port_connection.switchUuid = pg_obj.config.distributedVirtualSwitch.uuid nic.device.backing = vim.vm.device.VirtualEthernetCard.DistributedVirtualPortBackingInfo() nic.device.backing.port = dvs_port_connection + nic_change_detected = True else: # vSwitch if not isinstance(nic.device.backing, vim.vm.device.VirtualEthernetCard.NetworkBackingInfo):