Using the proper python syntax to fetch the default binary path for

different servers types.
This commit is contained in:
Harshal Dhumal
2017-08-26 09:59:53 +05:30
committed by Ashesh Vashi
parent 6b727c43b9
commit b1ad89fb4a

View File

@@ -54,10 +54,7 @@ class ServerType(object):
for key in cls.registry:
st = cls.registry[key]
default_path = (
config.DEFAULT_BINARY_PATHS[st.stype] if st.stype in
config.DEFAULT_BINARY_PATHS else ""
) or ""
default_path = config.DEFAULT_BINARY_PATHS.get(st.stype, "")
st.utility_path = paths.register(
'bin_paths', st.stype + '_bin_dir',