From c77ee4884d4ebcb2ae3c89557071d72c138bba74 Mon Sep 17 00:00:00 2001 From: Jeremy Linton Date: Fri, 11 Sep 2020 11:26:42 -0500 Subject: [PATCH] fedora: default to F30 for versions > 30 Instead of constantly updating the fedora version match logic we can start to use some range based selections so that it only needs to be updated if something changes. Signed-off-by: Jeremy Linton --- oz/Fedora.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oz/Fedora.py b/oz/Fedora.py index f02ac8b..d4d5405 100644 --- a/oz/Fedora.py +++ b/oz/Fedora.py @@ -249,7 +249,10 @@ class FedoraGuest(oz.RedHat.RedHatLinuxCDYumGuest): def __init__(self, tdl, config, auto, nicmodel, haverepo, diskbus, # pylint: disable=unused-argument brokenisomethod, output_disk=None, macaddress=None, # pylint: disable=unused-argument assumed_update=None, useuefi=False): - self.config = version_to_config[tdl.update] + if int(tdl.update) < 31: + self.config = version_to_config[tdl.update] + else: + self.config = version_to_config["30"] if nicmodel is None: nicmodel = self.config.default_netdev if diskbus is None: -- 2.30.0