Richard W.M. Jones
2010-May-06 10:41 UTC
[Libguestfs] [PATCH v2v] Pass config handle through to converter modules.
Existing modules will just ignore this extra parameter, but we'll be using it for Windows conversions. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html -------------- next part -------------->From f12e573e55078f0b1764fac816654f7e7c5ba091 Mon Sep 17 00:00:00 2001From: Richard Jones <rjones at redhat.com> Date: Thu, 6 May 2010 11:38:59 +0100 Subject: [PATCH 1/2] Pass config handle through to converter modules. --- lib/Sys/VirtV2V/Converter.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/Sys/VirtV2V/Converter.pm b/lib/Sys/VirtV2V/Converter.pm index 45038ee..564df15 100644 --- a/lib/Sys/VirtV2V/Converter.pm +++ b/lib/Sys/VirtV2V/Converter.pm @@ -147,7 +147,8 @@ sub convert # Find a module which can convert the guest and run it foreach my $module ($class->modules()) { if($module->can_handle($desc)) { - $guestcaps = $module->convert($g, $guestos, $desc, $devices); + $guestcaps = $module->convert($g, $guestos, $desc, $devices, + $config); last; } } -- 1.6.6.1
Matthew Booth
2010-May-06 10:57 UTC
[Libguestfs] [PATCH v2v] Pass config handle through to converter modules.
On 06/05/10 11:41, Richard W.M. Jones wrote:>>From f12e573e55078f0b1764fac816654f7e7c5ba091 Mon Sep 17 00:00:00 2001 > From: Richard Jones <rjones at redhat.com> > Date: Thu, 6 May 2010 11:38:59 +0100 > Subject: [PATCH 1/2] Pass config handle through to converter modules. > > --- > lib/Sys/VirtV2V/Converter.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) >ACK. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team M: +44 (0)7977 267231 GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490