[virt-manager PATCH] Typos fix and minor cleanup

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

 



Commit 57aab5de copy-pasted a typo, introduced a new one and used bad
order of parameters, so I'm fixing it so we're not stuck with it
forever.

Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---

Notes:
    Pushed as 'trivial'.

 virtinst/xmlbuilder.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/virtinst/xmlbuilder.py b/virtinst/xmlbuilder.py
index 3e7dde8..abf7941 100644
--- a/virtinst/xmlbuilder.py
+++ b/virtinst/xmlbuilder.py
@@ -250,9 +250,8 @@ class XMLProperty(property):
     def __init__(self, doc=None, xpath=None, name=None,
                  set_converter=None, validate_cb=None,
                  make_getter_xpath_cb=None, make_setter_xpath_cb=None,
-                 is_bool=False, is_int=False, is_yesno=False,
-                 clear_first=None, default_cb=None, default_name=None,
-                 is_onoff=False):
+                 is_bool=False, is_int=False, is_yesno=False, is_onoff=False,
+                 clear_first=None, default_cb=None, default_name=None):
         """
         Set a XMLBuilder class property that represents a value in the
         <domain> XML. For example
@@ -281,9 +280,9 @@ class XMLProperty(property):
             static xpath. This allows passing functions which generate
             an xpath for getting or setting.
         @param is_bool: Whether this is a boolean property in the XML
-        @param is_int: Whethere this is an integer property in the XML
-        @param is_yesno: Whethere this is a yes/no property in the XML
-        @param is_onoff: Whethere this is a on/off property in the XML
+        @param is_int: Whether this is an integer property in the XML
+        @param is_yesno: Whether this is a yes/no property in the XML
+        @param is_onoff: Whether this is an on/off property in the XML
         @param clear_first: List of xpaths to unset before any 'set' operation.
             For those weird interdependent XML props like disk source type and
             path attribute.
-- 
1.8.3.2

_______________________________________________
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