]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: qemu-monitor-command: Don't print extra newline with --pretty
authorPeter Krempa <pkrempa@redhat.com>
Mon, 1 Aug 2016 04:13:39 +0000 (06:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Aug 2016 14:21:53 +0000 (16:21 +0200)
commit8dbc95cbd18a5abab8f313b1ea9da7b3d7faaa32
tree420572d86f93b8e0d9844715e56fac2124edf42d
parent27bdc0af009551adf36da1362c73b3a3fd663601
virsh: qemu-monitor-command: Don't print extra newline with --pretty

The prettified JSON string already contains a newline so don't print
another one. This allows to pipe the json output (in conjunction with
the --quiet option) to files without having to truncate them afterwards.
tools/virsh-domain.c