def _servicegroup_get_server(sg_name, s_name, s_port=None, **connection_args):
    ret = None
    servers = _servicegroup_get_servers(sg_name, **connection_args)
    if servers is None:
        return None
    for server in servers:
        if server.get_servername() == s_name:
            if s_port is not None and s_port != server.get_port():
                ret = None
            ret = server
    return ret
Create a resource.
dataset/ETHPy150Open saltstack/salt/salt/modules/netscaler.py/_servicegroup_get_server--crossover with--dataset/ETHPy150Open openstack-infra/python-storyboardclient/storyboardclient/base.py/BaseManager.create