osdict: Remove redundant os name lookup

This commit is contained in:
Cole Robinson 2015-11-03 14:43:39 -05:00
parent b7e073a407
commit ac6c1df1ac
2 changed files with 2 additions and 3 deletions

View File

@ -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>

View File

@ -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