diff options
| author | Eric Blake | 2014-05-06 17:39:03 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2014-05-09 15:11:32 +0200 |
| commit | cd0c5389ddb7d0bb7005f993be1b8ac46a8b88b2 (patch) | |
| tree | e9b84fabc0f0ef886f787f767875879f21f7c5f8 | |
| parent | qmp: Don't use error_is_set() to suppress additional errors (diff) | |
| download | qemu-cd0c5389ddb7d0bb7005f993be1b8ac46a8b88b2.tar.gz qemu-cd0c5389ddb7d0bb7005f993be1b8ac46a8b88b2.tar.xz qemu-cd0c5389ddb7d0bb7005f993be1b8ac46a8b88b2.zip | |
qmp: use valid JSON in transaction example
Our example should use the correct quotes to match what someone
could actually pass over the wire.
* qmp-commands.hx: Use correct JSON quotes.
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
| -rw-r--r-- | qmp-commands.hx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx index f437937e2c..cae890ee5d 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -1165,19 +1165,19 @@ Example: -> { "execute": "transaction", "arguments": { "actions": [ - { 'type': 'blockdev-snapshot-sync', 'data' : { "device": "ide-hd0", + { "type": "blockdev-snapshot-sync", "data" : { "device": "ide-hd0", "snapshot-file": "/some/place/my-image", "format": "qcow2" } }, - { 'type': 'blockdev-snapshot-sync', 'data' : { "node-name": "myfile", + { "type": "blockdev-snapshot-sync", "data" : { "node-name": "myfile", "snapshot-file": "/some/place/my-image2", "snapshot-node-name": "node3432", "mode": "existing", "format": "qcow2" } }, - { 'type': 'blockdev-snapshot-sync', 'data' : { "device": "ide-hd1", + { "type": "blockdev-snapshot-sync", "data" : { "device": "ide-hd1", "snapshot-file": "/some/place/my-image2", "mode": "existing", "format": "qcow2" } }, - { 'type': 'blockdev-snapshot-internal-sync', 'data' : { + { "type": "blockdev-snapshot-internal-sync", "data" : { "device": "ide-hd2", "name": "snapshot0" } } ] } } <- { "return": {} } |
