mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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