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:
parent
4e31762ec6
commit
b51fa3b9f6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user