From 09dfd172c7933d6ce5ae27e7c1baeef502e5fd0f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 17 Oct 2016 11:10:21 +0100 Subject: [PATCH] Don't fail if $g->set_program method is not supported. For RHEL 6. --- import-to-ovirt.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import-to-ovirt.pl b/import-to-ovirt.pl index 112e6d6..abb557b 100755 --- 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 (); -- 1.8.3.1