[virt-manager PATCH] cli: proper error message for _on_off_convert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>

virt-install man page suggested that we should
use 'on' or 'off' for parameters like:
readonly, removable.
But our error message suggests 'yes' or 'no'.
Although it works, but we should keep pace
with man page.

Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
---
 virtinst/cli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/cli.py b/virtinst/cli.py
index 9c8c22c..c061abe 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -755,7 +755,7 @@ def _on_off_convert(key, val):
     val = _yes_no_convert(val)
     if val is not None:
         return val
-    raise fail(_("%(key)s must be 'yes' or 'no'") % {"key": key})
+    raise fail(_("%(key)s must be 'on' or 'off'") % {"key": key})
 
 
 class _VirtCLIArgument(object):
-- 
1.8.2.1

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux