From 06c0c15642ea166d8ee3cb8356d5f26d6cb11cb0 Mon Sep 17 00:00:00 2001
From: Cole Robinson <crobinso@redhat.com>
Date: Mon, 17 Nov 2014 10:21:33 -0500
Subject: [PATCH 2/2] 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.
(cherry picked from commit 60e62e26761072475301729002150ceb0ba617fd)
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1162800
Conflicts:
virtinst/osdict.py
---
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 b532cdf..bfc232f 100644
--- a/tests/misc.py
+++ b/tests/misc.py
@@ -117,7 +117,7 @@ class TestMisc(unittest.TestCase):
from virtinst import osdict
aliases = getattr(osdict, "_aliases")
- if len(aliases) != 36:
+ if len(aliases) != 37:
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 4659019..28cab38 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -64,6 +64,7 @@ _aliases = {
"ubuntusaucy" : "ubuntu13.10",
"vista" : "winvista",
"winxp64" : "winxp",
+ "virtio26": "fedora10",
}
--
1.9.3