[libvirt] [libvirt-python][PATCH] event-test.py: Sync list of storage lifecycle events

Michal Privoznik mprivozn at redhat.com
Tue May 22 11:48:59 UTC 2018


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

Since libvirt 3.8.0 we have 6 events: defined, undefined,
started, stopped, created, deleted. However, the last two were
missing in a string list that translates libvirt events (int)
into human readable strings.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 examples/event-test.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/event-test.py b/examples/event-test.py
index 3de333c..281e661 100755
--- a/examples/event-test.py
+++ b/examples/event-test.py
@@ -605,6 +605,8 @@ def storageEventToString(event):
                             "Undefined",
                             "Started",
                             "Stopped",
+                            "Created",
+                            "Deleted",
     )
     return storageEventStrings[event]
 
-- 
2.16.1




More information about the libvir-list mailing list