From: Wolfgang Bumiller Date: Mon, 25 Sep 2017 11:44:50 +0000 (+0200) Subject: qm importovf: --dryrun: use json output format X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=0f80f1ab6d9adbade381cdc0e0d0f4336f4f83d9 qm importovf: --dryrun: use json output format --- diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index 8061846..0e17cc9 100755 --- a/PVE/CLI/qm.pm +++ b/PVE/CLI/qm.pm @@ -23,7 +23,6 @@ use PVE::API2::Qemu; use JSON; use PVE::JSONSchema qw(get_standard_option); use Term::ReadLine; -use Data::Dumper; use PVE::CLIHandler; @@ -558,8 +557,8 @@ __PACKAGE__->register_method ({ my $parsed = PVE::QemuServer::OVF::parse_ovf($ovf_file); if ($dryrun) { - print Dumper($parsed); - exit(0); + print to_json($parsed, { pretty => 1, canonical => 1}); + return; } $param->{name} = $parsed->{qm}->{name} if defined($parsed->{qm}->{name});