summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2018-01-18 18:17:57 -0500
committerCole Robinson <crobinso@redhat.com>2018-01-19 10:28:29 -0500
commit402b42b14a43ed7ac878904ec209e4c7e2c2c8d3 (patch)
treeb51b625e7b7141d230f1d8889db16c9417ae9f2b
parentbe03382e25d2103abf73881684a4683282dce24a (diff)
downloadvirt-manager-402b42b14a43ed7ac878904ec209e4c7e2c2c8d3.tar.gz
watchdog: Add proper label for 'dump' action
-rw-r--r--virtinst/devicewatchdog.py4
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"]