From: Wolfgang Bumiller Date: Wed, 10 Jan 2018 14:48:59 +0000 (+0100) Subject: qm showcmd --pretty: indent new lines by 2 spaces X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=108899b48f6d8145d4126d25330f46efb9585dd0 qm showcmd --pretty: indent new lines by 2 spaces Signed-off-by: Wolfgang Bumiller --- diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index 687618a..564e443 100755 --- a/PVE/CLI/qm.pm +++ b/PVE/CLI/qm.pm @@ -132,7 +132,7 @@ __PACKAGE__->register_method ({ my $storecfg = PVE::Storage::config(); my $cmdline = PVE::QemuServer::vm_commandline($storecfg, $param->{vmid}); - $cmdline =~ s/ -/ \\\n-/g if $param->{pretty}; + $cmdline =~ s/ -/ \\\n -/g if $param->{pretty}; print "$cmdline\n";