Browse code

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

Sabari Kumar Murugesan authored on 2014/12/05 10:48:26
Showing 1 changed files
... ...
@@ -82,7 +82,7 @@ function upload_image {
82 82
         # driver will supply default values.
83 83
 
84 84
         local vmdk_disktype=""
85
-        local vmdk_net_adapter=""
85
+        local vmdk_net_adapter="e1000"
86 86
         local path_len
87 87
 
88 88
         # vmdk adapter type