'Updates nodes to the provided pool
:param alias: the account alias
:param location: the datacenter the load balancer resides in
:param lb_id: the id string of the load balancer
:param pool_id: the id string of the pool
:param nodes: a list of dictionaries containing the nodes to set
:return: result: The result from the CLC API call'

def set_loadbalancernodes(self, alias, location, lb_id, pool_id, nodes):

    result = None
    if (not lb_id):
        return result
    if (not self.module.check_mode):
        try:
            result = self.clc.v2.API.Call('PUT', ('/v2/sharedLoadBalancers/%s/%s/%s/pools/%s/nodes' % (alias, location, lb_id, pool_id)), json.dumps(nodes))
        except APIFailedResponse as e:
            self.module.fail_json(msg='Unable    to    set    nodes    for    the    load    balancer    pool    id    "{0}".    {1}'.format(pool_id, str(e.response_text)))
    return result
