mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-24 21:34:47 +03:00
osdict: Remove redundant os name lookup
This commit is contained in:
parent
b7e073a407
commit
ac6c1df1ac
@ -50,7 +50,7 @@
|
||||
<source bridge="eth0"/>
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
</interface>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<input type="tablet" bus="usb"/>
|
||||
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||
<image compression="off"/>
|
||||
</graphics>
|
||||
|
@ -357,13 +357,12 @@ class _OsVariant(object):
|
||||
return True
|
||||
|
||||
eol_date = self._os.get_eol_date_string()
|
||||
name = self._os.get_short_id()
|
||||
|
||||
if eol_date:
|
||||
return (datetime.datetime.strptime(eol_date, "%Y-%m-%d") >
|
||||
datetime.datetime.now())
|
||||
|
||||
if name == "fedora-unknown":
|
||||
if self.name == "fedora-unknown":
|
||||
return False
|
||||
|
||||
# As of libosinfo 2.11, many clearly EOL distros don't have an
|
||||
|
Loading…
Reference in New Issue
Block a user