[virt-tools-list] [virt-manager PATCH 3/4] osdict: rename "unix" type to "bsd"

Pino Toscano ptoscano at redhat.com
Fri Apr 21 11:03:45 UTC 2017


It really holds BSD OSes, so rename it to match the reality.
---
 virtManager/create.py | 2 +-
 virtinst/osdict.py    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/virtManager/create.py b/virtManager/create.py
index 441dcd8..1107d3c 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -962,11 +962,11 @@ class vmmCreate(vmmGObjectUI):
         # Pretty names for OSes.  If a new OS is not found here,
         # its capitalized name is used.
         oses = {
+            "bsd": _("BSD"),
             "generic": _("Generic"),
             "linux": _("Linux"),
             "other": _("Others"),
             "solaris": _("Solaris"),
-            "unix": _("UNIX"),
             "windows": _("Windows"),
         }
 
diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index 403aaaf..d602611 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -244,7 +244,7 @@ class _OSDB(object):
         return osname
 
     def list_types(self):
-        approved_types = ["linux", "windows", "unix",
+        approved_types = ["linux", "windows", "bsd",
             "solaris", "other", "generic"]
         return approved_types
 
@@ -421,7 +421,7 @@ class _OsVariant(object):
             return "solaris"
 
         if self._family in ['openbsd', 'freebsd', 'netbsd']:
-            return "unix"
+            return "bsd"
 
         return "other"
 
-- 
2.9.3




More information about the virt-tools-list mailing list