osdict: Fix unix alias

Needs to point to proper libosinfo name freebsd9.0
This commit is contained in:
Cole Robinson 2015-08-10 13:01:04 -04:00
parent cca72a73c4
commit 55b43dcbb8

View File

@ -174,7 +174,7 @@ class _OSDB(object):
"linux" : "generic",
"windows" : "winxp",
"solaris" : "solaris10",
"unix": "freebsd9",
"unix": "freebsd9.0",
"other": "generic",
}
@ -221,10 +221,7 @@ class _OSDB(object):
def lookup_os(self, key):
key = self._aliases.get(key) or key
ret = self._all_variants.get(key)
if ret is None:
return None
return ret
return self._all_variants.get(key)
def lookup_os_by_media(self, location):
media = libosinfo.Media.create_from_location(location, None)