summaryrefslogtreecommitdiff
path: root/examples/event-test.py
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2018-05-22 13:47:05 +0200
committerMichal Privoznik <mprivozn@redhat.com>2018-05-22 14:22:46 +0200
commitbae22e3eb7c33ec65bb77e5efeeca925ee787be9 (patch)
treef4881cdccbb2dbd1c7d0bc2433bc3f45181a5fca /examples/event-test.py
parentd23f8bc3a3530bd3df6c21ff288d5b3b28d1f219 (diff)
downloadlibvirt-python-bae22e3eb7c33ec65bb77e5efeeca925ee787be9.tar.gz
event-test.py: Sync list of storage lifecycle events
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@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Diffstat (limited to 'examples/event-test.py')
-rwxr-xr-xexamples/event-test.py2
1 files changed, 2 insertions, 0 deletions
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]