generate_haproxy_config expects a dict. fixed.