Skip to content

Commit

Permalink
qapi: fix example of UNPLUG_PRIMARY event
Browse files Browse the repository at this point in the history
Example output lacks mandatory member @timestamp.  Provide it.

Example output is not properly formatted. Fixing it by:
- Adding '<-' to signalize it is receiving the data;
- Breaking lines similar to the other examples.

Signed-off-by: Victor Toso <[email protected]>
Reviewed-by: John Snow <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
  • Loading branch information
victortoso authored and Markus Armbruster committed Mar 31, 2022
1 parent dba673b commit 0df5e9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qapi/migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,9 @@
# Since: 4.2
#
# Example:
# {"event": "UNPLUG_PRIMARY", "data": {"device-id": "hostdev0"} }
# <- { "event": "UNPLUG_PRIMARY",
# "data": { "device-id": "hostdev0" },
# "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
#
##
{ 'event': 'UNPLUG_PRIMARY',
Expand Down

0 comments on commit 0df5e9a

Please sign in to comment.