Francesco Romani has uploaded a new change for review. Change subject: vm: reformat _EVENT_STRINGS ......................................................................
vm: reformat _EVENT_STRINGS Reformat code to make it easy to extend the known event list. Change-Id: I6e8d577ebcee9e72cf70aab214f9ff42d46fcb9a Format-Only: yes Signed-off-by: Francesco Romani <[email protected]> --- M vdsm/virt/vm.py 1 file changed, 10 insertions(+), 8 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/30/48530/1 diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py index f9bc25c..7dd0247 100644 --- a/vdsm/virt/vm.py +++ b/vdsm/virt/vm.py @@ -158,14 +158,16 @@ # These strings are representing libvirt virDomainEventType values # http://libvirt.org/html/libvirt-libvirt-domain.html#virDomainEventType -_EVENT_STRINGS = ("Defined", - "Undefined", - "Started", - "Suspended", - "Resumed", - "Stopped", - "Shutdown", - "PM-Suspended") +_EVENT_STRINGS = ( + "Defined", + "Undefined", + "Started", + "Suspended", + "Resumed", + "Stopped", + "Shutdown", + "PM-Suspended", +) def eventToString(event): -- To view, visit https://gerrit.ovirt.org/48530 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6e8d577ebcee9e72cf70aab214f9ff42d46fcb9a Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Francesco Romani <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
