From 60e62e26761072475301729002150ceb0ba617fd Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 17 Nov 2014 10:21:33 -0500 Subject: [PATCH] osdict: Add back compat 'virtio26' entry We used to have that in the old osdict. Map it to fedora10 which gives virtio net/block but nothing else, which matches the old behavior. --- tests/misc.py | 2 +- virtinst/osdict.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/misc.py b/tests/misc.py index 580e5691f..363ff30fb 100644 --- a/tests/misc.py +++ b/tests/misc.py @@ -125,7 +125,7 @@ class TestMisc(unittest.TestCase): from virtinst import osdict aliases = getattr(osdict, "_aliases") - if len(aliases) != 39: + if len(aliases) != 40: raise AssertionError(_("osdict._aliases changed size. It " "should never be extended, since it is only for back " "compat with pre-libosinfo osdict.")) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 515eaf21a..ada849d72 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -69,6 +69,7 @@ _aliases = { "linux" : "generic", "windows" : "winxp", "solaris" : "solaris10", + "virtio26": "fedora10", } _SENTINEL = -1234 _allvariants = {}