]> git.proxmox.com Git - qemu-server.git/commitdiff
qm showcmd --pretty: indent new lines by 2 spaces
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 10 Jan 2018 14:48:59 +0000 (15:48 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 10 Jan 2018 14:48:59 +0000 (15:48 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/CLI/qm.pm

index 687618a905ac8968b386d10784b14358c2a18242..564e443951bf9c5356ed4cf37195e6464036e039 100755 (executable)
@@ -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";