VMware: add default image metadata for hw_vif_model

During glance image-create we are currently setting a null value
for the hw_vif_model, if we are unable to introspect from the vmdk
file.

This patch adds a default value if not found.

Change-Id: I6d0f551b18f03e2a799ae14c3347652a285693f0
This commit is contained in:
Sabari Kumar Murugesan 2014-12-04 17:48:26 -08:00
parent dead777ea3
commit 88cde0b3da

View File

@ -82,7 +82,7 @@ function upload_image {
# driver will supply default values.
local vmdk_disktype=""
local vmdk_net_adapter=""
local vmdk_net_adapter="e1000"
local path_len
# vmdk adapter type