1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-07-27 11:41:52 +03:00

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>
This commit is contained in:
Michal Privoznik
2018-05-22 13:47:05 +02:00
parent d23f8bc3a3
commit bae22e3eb7

View File

@ -605,6 +605,8 @@ def storageEventToString(event):
"Undefined",
"Started",
"Stopped",
"Created",
"Deleted",
)
return storageEventStrings[event]