mirror of https://gitee.com/openkylin/qemu.git
python/aqmp: add greeting property to QMPClient
Expose the greeting as a read-only property of QMPClient so it can be retrieved at-will. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 20210923004938.3999963-2-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
bfd9a76f9c
commit
0257209a09
|
@ -224,6 +224,11 @@ def __init__(self, name: Optional[str] = None) -> None:
|
|||
'asyncio.Queue[QMPClient._PendingT]'
|
||||
] = {}
|
||||
|
||||
@property
|
||||
def greeting(self) -> Optional[Greeting]:
|
||||
"""The `Greeting` from the QMP server, if any."""
|
||||
return self._greeting
|
||||
|
||||
@upper_half
|
||||
async def _establish_session(self) -> None:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue