OSDN Git Service

qapi/migration: Fix examples document wrong field name for arguments
authorFabian Holler <fabian.holler@simplesurance.de>
Tue, 22 Feb 2022 17:01:16 +0000 (18:01 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 28 Feb 2022 10:39:35 +0000 (11:39 +0100)
commitb1ca53224a9161292a2801f0f41377f3ee83c609
tree6f757ac2c85cfd9b22165270e418d0193610e704
parent429d79e6be65b26d707f966aed03455badda8ef7
qapi/migration: Fix examples document wrong field name for arguments

The examples for the snapshot-* and calc-dirty-rate commands document
that arguments for the commands are passed in a 'data' field.
This is wrong, passing them in a "data" field results in
the error:
  {"error": {"class": "GenericError", "desc": "QMP input member 'data'
       is unexpected"}}
Arguments are expected to be passed in an field called "arguments".

Replace "data" with "arguments" in the snapshot-* and calc-dirty-rate
command examples.

Signed-off-by: Fabian Holler <fabian.holler@simplesurance.de>
Message-Id: <20220222170116.63105-1-fabian.holler@simplesurance.de>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qapi/migration.json