]> Git Repo - qemu.git/commitdiff
QMP: Teach basic capability negotiation to python example
authorJan Kiszka <[email protected]>
Tue, 15 Jun 2010 22:38:45 +0000 (00:38 +0200)
committerLuiz Capitulino <[email protected]>
Thu, 1 Jul 2010 17:27:13 +0000 (14:27 -0300)
As sending "qmp_capabilities" on session start became mandatory, both
python examples were broken.

Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
QMP/qmp-shell
QMP/vm-info

index f89b9af87ec86994b2f6365d7d0ac240cf82b3d7..a5b72d15d1808c8764b11cc93c02992626ecad7f 100755 (executable)
@@ -42,6 +42,7 @@ def main():
 
     qemu = qmp.QEMUMonitorProtocol(argv[1])
     qemu.connect()
+    qemu.send("qmp_capabilities")
 
     print 'Connected!'
 
index 8ebaeb38c00a7c20ebf783c9bff8804af6e0aeea..be5b03843ca76fa923ea3296ae64b6fbdb2b5917 100755 (executable)
@@ -24,6 +24,7 @@ def main():
 
     qemu = qmp.QEMUMonitorProtocol(argv[1])
     qemu.connect()
+    qemu.send("qmp_capabilities")
 
     for cmd in [ 'version', 'kvm', 'status', 'uuid', 'balloon' ]:
         print cmd + ': ' + str(qemu.send('query-' + cmd))
This page took 0.028138 seconds and 4 git commands to generate.