mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix bad behaviour of xm when calling event.next(), by adding a different error
code (SESSION_NOT_REGISTERED). Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
c7dfb7d170
commit
d05727902f
3 files changed
+20
-4
No files matched your search
@@ -122,7 +122,7 @@ def event_unregister(session, unreg_classes):
|
||||
|
||||
def event_next(session):
|
||||
if session not in event_registrations:
|
||||
return xen_api_error(['SESSION_INVALID', session])
|
||||
return xen_api_error(['SESSION_NOT_REGISTERED', session])
|
||||
queue = event_registrations[session]['queue']
|
||||
events = [queue.get()]
|
||||
try:
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Xen-xm 3.0\n"
|
||||
"PO-Revision-Date: 2007-03-10 23:17+0000\n"
|
||||
"PO-Revision-Date: 2007-03-29 16:13+0100\n"
|
||||
"Last-Translator: Ewan Mellor <ewan@xensource.com>\n"
|
||||
"Language-Team: xen-devel <xen-devel@lists.xensource.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -64,3 +64,6 @@ msgstr "The VM must be %(2)s to perform the requested operation (it is currently
|
||||
|
||||
msgid "VM_HVM_REQUIRED"
|
||||
msgstr "HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?"
|
||||
|
||||
msgid "SESSION_NOT_REGISTERED"
|
||||
msgstr "This session is not registered to receive events. You must call event.register before event.next. (Session handle is %(1)s.)"
|
||||