]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
examples: support crash events in event-test.py
authorGiuseppe Scrivano <gscrivan@redhat.com>
Wed, 14 Aug 2013 21:06:25 +0000 (23:06 +0200)
committerEric Blake <eblake@redhat.com>
Wed, 14 Aug 2013 21:59:21 +0000 (15:59 -0600)
commit 14e7e0ae8db9843aea80245a3d9e6cf5f2ef720d adds the support for
crash events.

Solves: https://bugzilla.redhat.com/show_bug.cgi?id=994317

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
examples/domain-events/events-python/event-test.py

index b7c10d147da64cc36d9bbf0559e0145e96a2fbe8..84f5259fc2f5895599187c9927b300f424742fd6 100644 (file)
@@ -437,7 +437,8 @@ def eventToString(event):
                      "Resumed",
                      "Stopped",
                      "Shutdown",
-                     "PMSuspended" )
+                     "PMSuspended",
+                     "Crashed" )
     return eventStrings[event]
 
 def detailToString(event, detail):
@@ -449,7 +450,8 @@ def detailToString(event, detail):
         ( "Unpaused", "Migrated", "Snapshot" ),
         ( "Shutdown", "Destroyed", "Crashed", "Migrated", "Saved", "Failed", "Snapshot"),
         ( "Finished", ),
-        ( "Memory", "Disk" )
+        ( "Memory", "Disk" ),
+        ( "Panicked", )
         )
     return eventStrings[event][detail]