git.annexia.org
/
import-to-ovirt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
001e24e
)
Don't fail if $g->set_program method is not supported.
author
Richard W.M. Jones
<rjones@redhat.com>
Mon, 17 Oct 2016 10:10:21 +0000
(11:10 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 17 Oct 2016 10:10:21 +0000
(11:10 +0100)
For RHEL 6.
import-to-ovirt.pl
patch
|
blob
|
history
diff --git
a/import-to-ovirt.pl
b/import-to-ovirt.pl
index
112e6d6
..
abb557b
100755
(executable)
--- a/
import-to-ovirt.pl
+++ b/
import-to-ovirt.pl
@@
-242,7
+242,7
@@
unlink ".test.qcow2";
# Open the guest in libguestfs so we can inspect it.
my $g = Sys::Guestfs->new ();
-
$g->set_program ("virt-import-to-ovirt")
;
+
eval { $g->set_program ("virt-import-to-ovirt"); }
;
$g->add_drive_opts ($_, readonly => 1) foreach (@disks);
$g->launch ();
my @roots = $g->inspect_os ();