mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
watchdog: Add proper label for 'dump' action
This commit is contained in:
parent
be03382e25
commit
402b42b14a
@ -40,7 +40,7 @@ class VirtualWatchdog(VirtualDevice):
|
||||
ACTION_DEFAULT = "default"
|
||||
ACTIONS = [ACTION_RESET, ACTION_SHUTDOWN,
|
||||
ACTION_POWEROFF, ACTION_PAUSE,
|
||||
ACTION_NONE, ACTION_DUMP]
|
||||
ACTION_DUMP, ACTION_NONE]
|
||||
|
||||
@staticmethod
|
||||
def get_action_desc(action):
|
||||
@ -54,6 +54,8 @@ class VirtualWatchdog(VirtualDevice):
|
||||
return _("Pause the guest")
|
||||
if action == VirtualWatchdog.ACTION_NONE:
|
||||
return _("No action")
|
||||
if action == VirtualWatchdog.ACTION_DUMP:
|
||||
return _("Dump guest memory core")
|
||||
return action
|
||||
|
||||
_XML_PROP_ORDER = ["model", "action"]
|
||||
|
Loading…
Reference in New Issue
Block a user