diff options
author | Cole Robinson <crobinso@redhat.com> | 2018-01-18 18:17:57 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2018-01-19 10:28:29 -0500 |
commit | 402b42b14a43ed7ac878904ec209e4c7e2c2c8d3 (patch) | |
tree | b51b625e7b7141d230f1d8889db16c9417ae9f2b | |
parent | be03382e25d2103abf73881684a4683282dce24a (diff) | |
download | virt-manager-402b42b14a43ed7ac878904ec209e4c7e2c2c8d3.tar.gz |
watchdog: Add proper label for 'dump' action
-rw-r--r-- | virtinst/devicewatchdog.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/virtinst/devicewatchdog.py b/virtinst/devicewatchdog.py index 7bb9002e..9f857c33 100644 --- a/virtinst/devicewatchdog.py +++ b/virtinst/devicewatchdog.py @@ -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"] |