'Attaches a list of members to a load balancer.
:param balancer: The Balancer to which members will be attached.
:type  balancer: :class:`LoadBalancer`
:param members: A list of Members to attach.
:type  members: ``list`` of :class:`Member`
:rtype: ``list`` of :class:`Member`'

def ex_balancer_attach_members(self, balancer, members):

    member_objects = {'nodes': [self._member_attributes(member) for member in members]}
    uri = ('/loadbalancers/%s/nodes' % balancer.id)
    resp = self.connection.request(uri, method='POST', data=json.dumps(member_objects))
    return self._to_members(resp.object, balancer)
