summaryrefslogtreecommitdiff
path: root/virtinst/osdict.py
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2019-09-11 18:19:09 +0200
committerCole Robinson <crobinso@redhat.com>2019-09-11 16:22:40 -0400
commitd6d97c658771f75d2a1fdfeeac02ee7bfb106b88 (patch)
tree26f8977a8d077e78c78d772aed396c7cf0251dd5 /virtinst/osdict.py
parent0f1acc9f8f392eaf5edd30ce239728afd1f924cf (diff)
downloadvirt-manager-d6d97c658771f75d2a1fdfeeac02ee7bfb106b88.tar.gz
osdict: Choose the most appropriate tree when a profile is set
As some OSes, as Fedora, have variants (which we rely to be standardised on osinfo-db side), let's select the most appropriate variant according to the selected profile of the unattended installation. Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'virtinst/osdict.py')
-rw-r--r--virtinst/osdict.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index eb26ddb9..a077170b 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -628,7 +628,11 @@ class _OsVariant(object):
return None
fallback_tree = None
- if not profile:
+ if profile == "jeos":
+ profile = "Server"
+ elif profile == "desktop":
+ profile = "Workstation"
+ elif not profile:
profile = "Everything"
for tree in treelist: