Blame SOURCES/0077-v2v-o-rhv-upload-Properly-replace-SD_UUID-in-OVF-RHB.patch

e9bfca
From ff223abca41eb5c491dc05a1c4e006ad65f34148 Mon Sep 17 00:00:00 2001
e9bfca
From: "Richard W.M. Jones" <rjones@redhat.com>
e9bfca
Date: Tue, 7 Aug 2018 09:06:46 +0100
e9bfca
Subject: [PATCH] v2v: -o rhv-upload: Properly replace SD_UUID in OVF
e9bfca
 (RHBZ#1612653).
e9bfca
e9bfca
The @SD_UUID@ pattern was not being replaced correctly.
e9bfca
e9bfca
Thanks: Daniel Erez.
e9bfca
---
e9bfca
 v2v/rhv-upload-createvm.py | 2 +-
e9bfca
 1 file changed, 1 insertion(+), 1 deletion(-)
e9bfca
e9bfca
diff --git a/v2v/rhv-upload-createvm.py b/v2v/rhv-upload-createvm.py
e9bfca
index a34627ec8..1d0e8c95d 100644
e9bfca
--- a/v2v/rhv-upload-createvm.py
e9bfca
+++ b/v2v/rhv-upload-createvm.py
e9bfca
@@ -70,7 +70,7 @@ sds_service = system_service.storage_domains_service()
e9bfca
 sd = sds_service.list(search=("name=%s" % params['output_storage']))[0]
e9bfca
 sd_uuid = sd.id
e9bfca
 
e9bfca
-ovf.replace("@SD_UUID@", sd_uuid)
e9bfca
+ovf = ovf.replace("@SD_UUID@", sd_uuid)
e9bfca
 
e9bfca
 vms_service = system_service.vms_service()
e9bfca
 vm = vms_service.add(
e9bfca
-- 
e9bfca
2.17.1
e9bfca