Skip to content

Commit 0257209

Browse files
committed
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 <[email protected]> Reviewed-by: Hanna Reitz <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Message-id: [email protected] Signed-off-by: John Snow <[email protected]>
1 parent bfd9a76 commit 0257209

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/qemu/aqmp/qmp_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ def __init__(self, name: Optional[str] = None) -> None:
224224
'asyncio.Queue[QMPClient._PendingT]'
225225
] = {}
226226

227+
@property
228+
def greeting(self) -> Optional[Greeting]:
229+
"""The `Greeting` from the QMP server, if any."""
230+
return self._greeting
231+
227232
@upper_half
228233
async def _establish_session(self) -> None:
229234
"""

0 commit comments

Comments
 (0)