diff options
author | Guilhem Moulin <guilhem@libreoffice.org> | 2016-11-02 19:20:32 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@libreoffice.org> | 2016-11-02 19:20:32 +0100 |
commit | cb424f8f306872f6eeaabf4f9963c8c20784d099 (patch) | |
tree | cea4177b03887beda4d68e822ac06372e3129447 /virsh-ga | |
parent | 065f3f4c3415e56ff73f913dd0bf2cc24258f9e0 (diff) |
virsh-ga: pretty-print 'guest-info' response.
Diffstat (limited to 'virsh-ga')
-rwxr-xr-x | virsh-ga | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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'); |