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

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