Skip to contentSkip to conversation

qmp: use valid JSON in transaction example

PATCH Applied Eric Blake 2 participants 2 messages May 6, 2014 – May 7, 2014

lore
Share & tools
lore

Eric Blake

author
#0 lore raw

PATCH 1/1 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.

---
 qmp-commands.hx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
qmp-commands.hx +4 -4
index ed3ab92..e20fcf0 100644
@@ -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": {} }
Signature · 1 line
1.9.0
#1 lore raw
Quoted 6 lines · On Tue, 6 May 2014 09:39:03 -0600 Eric Blake <[email protected]> wrote:

Our example should use the correct quotes to match what someone could actually pass over the wire.

* qmp-commands.hx: Use correct JSON quotes.

Applied to the qmp branch, thanks.

Quoted 32 lines
---
 qmp-commands.hx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
qmp-commands.hx +4 -4
index ed3ab92..e20fcf0 100644
@@ -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": {} }