OSDN Git Service

python/aqmp: add _raw() execution interface
authorJohn Snow <jsnow@redhat.com>
Wed, 15 Sep 2021 16:29:49 +0000 (12:29 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Sep 2021 16:10:29 +0000 (12:10 -0400)
commit41f4f92260da1c45f6b68f5965a30e503f394269
tree62331ef0b75f9aceaaf3516cdcb2b22dbdc5a69a
parente0fea0b3ac85aefacbecf732d18f6d7ba438fa69
python/aqmp: add _raw() execution interface

This is added in anticipation of wanting it for a synchronous wrapper
for the iotest interface. Normally, execute() and execute_msg() both
raise QMP errors in the form of Python exceptions.

Many iotests expect the entire reply as-is. To reduce churn there, add a
private execution interface that will ease transition churn. However, I
do not wish to encourage its use, so it will remain a private interface.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210915162955.333025-22-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/aqmp/qmp_client.py