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.
This commit is contained in:
Cole Robinson 2014-11-17 10:21:33 -05:00
parent 78c52a13f1
commit 60e62e2676
2 changed files with 2 additions and 1 deletions

View File

@ -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."))

View File

@ -69,6 +69,7 @@ _aliases = {
"linux" : "generic",
"windows" : "winxp",
"solaris" : "solaris10",
"virtio26": "fedora10",
}
_SENTINEL = -1234
_allvariants = {}