From 7629702ca0956fb26d27ee19ed99306f73421c66 Mon Sep 17 00:00:00 2001 From: Sankar Tanguturi Date: Mon, 11 Sep 2017 07:50:01 -0700 Subject: vmware: Enable nics before sending the SUCCESS event. The network devices should be enabled before sending the 'SUCCESS' event to the underlying hypervisor. --- cloudinit/sources/DataSourceOVF.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudinit/sources/DataSourceOVF.py b/cloudinit/sources/DataSourceOVF.py index aa5f798d..24b45d55 100644 --- a/cloudinit/sources/DataSourceOVF.py +++ b/cloudinit/sources/DataSourceOVF.py @@ -182,10 +182,10 @@ class DataSourceOVF(sources.DataSource): # TODO: Need to set the status to DONE only when the # customization is done successfully. + enable_nics(self._vmware_nics_to_enable) set_customization_status( GuestCustStateEnum.GUESTCUST_STATE_DONE, GuestCustErrorEnum.GUESTCUST_ERROR_SUCCESS) - enable_nics(self._vmware_nics_to_enable) else: np = {'iso': transport_iso9660, -- cgit v1.2.3