qm showcmd --pretty: indent new lines by 2 spaces

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2018-01-10 15:48:59 +01:00
parent 16a01738cb
commit 108899b48f

View File

@ -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";