Skip to content

Commit

Permalink
QMP: Teach basic capability negotiation to python example
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jan-kiszka authored and Luiz Capitulino committed Jul 1, 2010
1 parent 8ac470c commit 8d7e845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions QMP/qmp-shell
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def main():

qemu = qmp.QEMUMonitorProtocol(argv[1])
qemu.connect()
qemu.send("qmp_capabilities")

print 'Connected!'

Expand Down
1 change: 1 addition & 0 deletions QMP/vm-info
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8d7e845

Please sign in to comment.