[virt-tools-list] [virt-manager PATCH 3/3] Unify prettification of VirtIO serial

Martin Kletzander mkletzan at redhat.com
Wed Feb 12 16:52:56 UTC 2014


Use the same case for occurrences of 'VirtIO' which start with
uppercase V.

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 virtManager/addhardware.py   | 4 ++--
 virtManager/details.py       | 4 ++--
 virtinst/devicecontroller.py | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index 3293171..121c75b 100644
--- a/virtManager/addhardware.py
+++ b/virtManager/addhardware.py
@@ -756,8 +756,8 @@ class vmmAddHardware(vmmGObjectUI):
         if self.vm.get_hv_type() in ["qemu", "kvm", "test"]:
             model.append(["sata", "SATA"])
             model.append(["sd", "SD"])
-            model.append(["virtio", "Virtio"])
-            model.append(["virtio-scsi", "Virtio SCSI"])
+            model.append(["virtio", "VirtIO"])
+            model.append(["virtio-scsi", "VirtIO SCSI"])

         if self.conn.is_xen() or self.conn.is_test_conn():
             model.append(["xen", "Xen"])
diff --git a/virtManager/details.py b/virtManager/details.py
index d8b0d1e..72e79da 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -3024,7 +3024,7 @@ class vmmDetails(vmmGObjectUI):
             self.widget("config-remove").set_sensitive(False)
         if dev.type == virtinst.VirtualController.TYPE_SCSI:
             model.append(["default", "Default"])
-            model.append(["virtio-scsi", "Virtio SCSI"])
+            model.append(["virtio-scsi", "VirtIO SCSI"])
         else:
             self.widget("config-remove").set_sensitive(True)

@@ -3130,7 +3130,7 @@ class vmmDetails(vmmGObjectUI):
                     buses.append(["usb", "USB"])
             if self.vm.get_hv_type() in ["kvm", "test"]:
                 buses.append(["sata", "SATA"])
-                buses.append(["virtio", "Virtio"])
+                buses.append(["virtio", "VirtIO"])
             if (self.vm.get_hv_type() == "kvm" and
                     self.vm.get_machtype() == "pseries"):
                 buses.append(["spapr-vscsi", "sPAPR-vSCSI"])
diff --git a/virtinst/devicecontroller.py b/virtinst/devicecontroller.py
index 9da44bf..03857cf 100644
--- a/virtinst/devicecontroller.py
+++ b/virtinst/devicecontroller.py
@@ -1,5 +1,5 @@
 #
-# Copyright 2010, 2013 Red Hat, Inc.
+# Copyright 2010, 2013, 2014 Red Hat, Inc.
 # Cole Robinson <crobinso at redhat.com>
 #
 # This program is free software; you can redistribute it and/or modify
@@ -44,7 +44,7 @@ class VirtualController(VirtualDevice):
             VirtualController.TYPE_FDC           : "Floppy",
             VirtualController.TYPE_SCSI          : "SCSI",
             VirtualController.TYPE_SATA          : "SATA",
-            VirtualController.TYPE_VIRTIOSERIAL  : "Virtio Serial",
+            VirtualController.TYPE_VIRTIOSERIAL  : "VirtIO Serial",
             VirtualController.TYPE_USB           : "USB",
             VirtualController.TYPE_PCI           : "PCI",
             VirtualController.TYPE_CCID          : "CCID",
-- 
1.8.5.4




More information about the virt-tools-list mailing list