From 9ec4758b87dcb57f82247e24fb1575b1e0fbf70e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 17 Oct 2016 11:30:17 +0100 Subject: [PATCH] RHEL 6: Don't use OUTPUT => "self", only available in RHEL 7. --- import-to-ovirt.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/import-to-ovirt.pl b/import-to-ovirt.pl index 2828172..d9204b4 100755 --- a/import-to-ovirt.pl +++ b/import-to-ovirt.pl @@ -510,8 +510,9 @@ my %prefix_map = ( ); my @forced_ns_decls = keys %prefix_map; +my $ovf = ""; my $w = XML::Writer->new ( - OUTPUT => "self", + OUTPUT => \$ovf, NAMESPACES => 1, PREFIX_MAP => \%prefix_map, FORCED_NS_DECLS => \@forced_ns_decls, @@ -782,8 +783,6 @@ $w->endTag ("Content"); $w->endTag ([$ovf_ns, "Envelope"]); $w->end (); -my $ovf = $w->to_string; - #print "OVF:\n$ovf\n"; my $ovf_dir = "$esd_uuid_dir/master/vms/$vm_uuid"; -- 1.8.3.1