mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
examples: Update strings for event details
This commit is contained in:
parent
6cfdeaac55
commit
462c211232
@ -176,7 +176,7 @@ static const char *eventDetailToString(int event, int detail) {
|
|||||||
ret = "Migrated";
|
ret = "Migrated";
|
||||||
break;
|
break;
|
||||||
case VIR_DOMAIN_EVENT_STOPPED_SAVED:
|
case VIR_DOMAIN_EVENT_STOPPED_SAVED:
|
||||||
ret = "Failed";
|
ret = "Saved";
|
||||||
break;
|
break;
|
||||||
case VIR_DOMAIN_EVENT_STOPPED_FAILED:
|
case VIR_DOMAIN_EVENT_STOPPED_FAILED:
|
||||||
ret = "Failed";
|
ret = "Failed";
|
||||||
|
@ -443,9 +443,9 @@ def detailToString(event, detail):
|
|||||||
eventStrings = (
|
eventStrings = (
|
||||||
( "Added", "Updated" ),
|
( "Added", "Updated" ),
|
||||||
( "Removed" ),
|
( "Removed" ),
|
||||||
( "Booted", "Migrated", "Restored", "Snapshot" ),
|
( "Booted", "Migrated", "Restored", "Snapshot", "Wakeup" ),
|
||||||
( "Paused", "Migrated", "IOError", "Watchdog" ),
|
( "Paused", "Migrated", "IOError", "Watchdog", "Restored", "Snapshot" ),
|
||||||
( "Unpaused", "Migrated"),
|
( "Unpaused", "Migrated", "Snapshot" ),
|
||||||
( "Shutdown", "Destroyed", "Crashed", "Migrated", "Saved", "Failed", "Snapshot"),
|
( "Shutdown", "Destroyed", "Crashed", "Migrated", "Saved", "Failed", "Snapshot"),
|
||||||
( "Finished" )
|
( "Finished" )
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user