aboutsummaryrefslogtreecommitdiffstats
path: root/virsh-ga
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@libreoffice.org>2016-11-02 19:20:32 +0100
committerGuilhem Moulin <guilhem@libreoffice.org>2016-11-02 19:20:32 +0100
commitcb424f8f306872f6eeaabf4f9963c8c20784d099 (patch)
treecea4177b03887beda4d68e822ac06372e3129447 /virsh-ga
parent065f3f4c3415e56ff73f913dd0bf2cc24258f9e0 (diff)
virsh-ga: pretty-print 'guest-info' response.
Diffstat (limited to 'virsh-ga')
-rwxr-xr-xvirsh-ga3
1 files changed, 2 insertions, 1 deletions
diff --git a/virsh-ga b/virsh-ga
index 6724298..d64983c 100755
--- a/virsh-ga
+++ b/virsh-ga
@@ -63,7 +63,8 @@ sub ga_send(@) {
# the JSON domain definition can be found in QEMU's qga/qapi-schema.json
if ($COMMAND eq 'info') {
- ga_send(execute => 'guest-info');
+ my $r = ga_send(execute => 'guest-info');
+ print JSON->new->pretty->utf8->canonical->encode($r), "\n";
}
elsif ($COMMAND eq 'ping') {
ga_send(execute => 'guest-ping');