def marathon_lb_domains(domains):
    """
    marathon-lb takes comma-separated domain names for its HAPROXY_{n}_VHOST
    labels. Convert our space-separated domains to that form.
    """
    return ",".join(domains.split())