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

Pino Toscano ptoscano at redhat.com
Mon Apr 24 14:20:42 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 ff4f1bb..e855cf6 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -975,11 +975,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