def server_setting(server='default', setting=None):
    if not setting:
        return None
    settings = hostlists.get_setting('haproxy_plugin')
    if not settings:
        return None
    if server in settings.keys():
        if setting in settings[server].keys():
            return settings[server][setting]
    return None


# noinspection PyBroadException
dataset/ETHPy150Open dwighthubbard/hostlists/hostlists/plugins/haproxy.py/server_setting/original