summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorSankar Tanguturi <stanguturi@vmware.com>2017-09-11 07:50:01 -0700
committerScott Moser <smoser@brickies.net>2017-09-14 13:42:31 -0400
commit7629702ca0956fb26d27ee19ed99306f73421c66 (patch)
tree58ba8120aea712501d75cec2bcd65dd223b04bec /cloudinit
parentf761f2b5f58c8cf13cfee63619f32046216cf66a (diff)
downloadvyos-cloud-init-7629702ca0956fb26d27ee19ed99306f73421c66.tar.gz
vyos-cloud-init-7629702ca0956fb26d27ee19ed99306f73421c66.zip
vmware: Enable nics before sending the SUCCESS event.
The network devices should be enabled before sending the 'SUCCESS' event to the underlying hypervisor.
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/sources/DataSourceOVF.py2
1 files changed, 1 insertions, 1 deletions
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,