Richard W.M. Jones
2018-Aug-07 08:07 UTC
[Libguestfs] [PATCH] v2v: -o rhv-upload: Properly replace SD_UUID in OVF (RHBZ#1612653).
The @SD_UUID@ pattern was not being replaced correctly. Thanks: Daniel Erez. --- v2v/rhv-upload-createvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2v/rhv-upload-createvm.py b/v2v/rhv-upload-createvm.py index a34627ec8..1d0e8c95d 100644 --- a/v2v/rhv-upload-createvm.py +++ b/v2v/rhv-upload-createvm.py @@ -70,7 +70,7 @@ sds_service = system_service.storage_domains_service() sd = sds_service.list(search=("name=%s" % params['output_storage']))[0] sd_uuid = sd.id -ovf.replace("@SD_UUID@", sd_uuid) +ovf = ovf.replace("@SD_UUID@", sd_uuid) vms_service = system_service.vms_service() vm = vms_service.add( -- 2.18.0
Nir Soffer
2018-Aug-07 08:14 UTC
Re: [Libguestfs] [PATCH] v2v: -o rhv-upload: Properly replace SD_UUID in OVF (RHBZ#1612653).
On Tue, 7 Aug 2018, 11:07 Richard W.M. Jones, <rjones@redhat.com> wrote:> The @SD_UUID@ pattern was not being replaced correctly. > > Thanks: Daniel Erez. > --- > v2v/rhv-upload-createvm.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/v2v/rhv-upload-createvm.py b/v2v/rhv-upload-createvm.py > index a34627ec8..1d0e8c95d 100644 > --- a/v2v/rhv-upload-createvm.py > +++ b/v2v/rhv-upload-createvm.py > @@ -70,7 +70,7 @@ sds_service = system_service.storage_domains_service() > sd = sds_service.list(search=("name=%s" % params['output_storage']))[0] > sd_uuid = sd.id > > -ovf.replace("@SD_UUID@", sd_uuid) > +ovf = ovf.replace("@SD_UUID@", sd_uuid) > > vms_service = system_service.vms_service() > vm = vms_service.add( > -- > 2.18.0Looks good
Maybe Matching Threads
- [PATCH 3/8] v2v: -o rhv-upload: improve lookup of specified resources (RHBZ#1612653)
- [PATCH 0/8] v2v: various fixed for -o rhv-upload
- Re: [PATCH v5 4/4] v2v: Add -o rhv-upload output mode.
- [PATCH v5 0/4] v2v: Add -o rhv-upload output mode.
- [PATCH v8] v2v: Add -o rhv-upload output mode (RHBZ#1557273).