bug 331 Ensure neutron port is deleted upon vm creation failed
[osm/RO.git] / osm_ro / vmwarerecli.py
index acd4240..b2f1752 100755 (executable)
@@ -553,7 +553,7 @@ def boot_image(vim=None, image_name=None, vm_name=None):
                 return None
 
         print (" Booting {} image id {} ".format(vm_name, vim_catalog))
-        vm_uuid = vim.new_vminstance(name=vm_name, image_id=vim_catalog)
+        vm_uuid, _ = vim.new_vminstance(name=vm_name, image_id=vim_catalog)
         if vm_uuid is not None and validate_uuid4(vm_uuid):
             print("Image booted and vm uuid {}".format(vm_uuid))
             vapp_dict = vim.get_vapp(vdc_name=namespace.vcdvdc, vapp_name=vm_uuid, isuuid=True)