distro_utils.py get dictionary value using get

This patch use get to get the value of os_name. Else, None is get.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-11-01 08:29:15 +01:00
parent 4e31762ec6
commit b51fa3b9f6

View File

@ -69,12 +69,8 @@ def get_os_sslcertfile_searchpath():
Returned value of None means that there is no search path
at all.
"""
os_name = get_os_name()
location = None
if os_name in __DEF_OS_LOCATIONS:
location = __DEF_OS_LOCATIONS[os_name]
location = __DEF_OS_LOCATIONS.get(os_name, None)
return location