Blame SOURCES/0038-v2v-OVF-fix-ovf-id-for-VirtualSystem-in-OVirt-flavou.patch

e9bfca
From ffd2b553fd9e1037d25122c6b749e6f4d1632df0 Mon Sep 17 00:00:00 2001
e9bfca
From: Pino Toscano <ptoscano@redhat.com>
e9bfca
Date: Thu, 5 Apr 2018 10:28:17 +0200
e9bfca
Subject: [PATCH] v2v: OVF: fix ovf:id for VirtualSystem in OVirt flavour
e9bfca
e9bfca
When writing the OVF in OVirt flavour, write the actual UUID of the
e9bfca
VM as ovf:id attribute for <VirtualSystem>, instead of a dummy value.
e9bfca
e9bfca
Suggested by Arik Hadas in
e9bfca
https://www.redhat.com/archives/libguestfs/2018-April/msg00005.html
e9bfca
e9bfca
(cherry picked from commit 9dce43931a19510be1b6d21ce67d14a4136ce241)
e9bfca
---
e9bfca
 v2v/create_ovf.ml | 2 +-
e9bfca
 1 file changed, 1 insertion(+), 1 deletion(-)
e9bfca
e9bfca
diff --git a/v2v/create_ovf.ml b/v2v/create_ovf.ml
e9bfca
index ccde960df..c29b8421c 100644
e9bfca
--- a/v2v/create_ovf.ml
e9bfca
+++ b/v2v/create_ovf.ml
e9bfca
@@ -688,7 +688,7 @@ let rec create_ovf source targets guestcaps inspect
e9bfca
 
e9bfca
       (match ovf_flavour with
e9bfca
       | OVirt ->
e9bfca
-        e "VirtualSystem" ["ovf:id", "out"] !content_subnodes
e9bfca
+        e "VirtualSystem" ["ovf:id", vm_uuid] !content_subnodes
e9bfca
       | RHVExportStorageDomain ->
e9bfca
         e "Content" ["ovf:id", "out"; "xsi:type", "ovf:VirtualSystem_Type"]
e9bfca
           !content_subnodes
e9bfca
-- 
e9bfca
2.17.1
e9bfca