def get_default_lb_vserver(client, module):
    try:
        default_lb_vserver = csvserver_lbvserver_binding.get(client, module.params['name'])
        return default_lb_vserver[0]
    except nitro_exception as e:
        if e.errorcode == 258:
            return csvserver_lbvserver_binding()
        else:
            raise
def get_default_lb_vserver(client, module):
    try:
        default_lb_vserver = csvserver_lbvserver_binding.get(client, module.params['name'])
        return default_lb_vserver[0]
    except nitro_exception as e:
        if e.errorcode == 258:
            return csvserver_lbvserver_binding()
        else:
            raise
def get_default_lb_vserver(client, module):
    try:
        default_lb_vserver = csvserver_lbvserver_binding.get(client, module.params['name'])
        if default_lb_vserver[0].name is None or default_lb_vserver[0].name == '':
            log('Got invalid default lb vserver')
            return None
        else:
            log('Got default lb vserver with name %s' % default_lb_vserver[0].name)
            return default_lb_vserver[0]
    except nitro_exception as e:
        if e.errorcode == 258:
            log('Returning on nitro_exception 258')
            return csvserver_lbvserver_binding()
        else:
            raise