def _find_server(cs, server, raise_if_notfound=True, **find_args):
 if raise_if_notfound:
  return utils.find_resource(cs.servers, server, **find_args)
 else:
  try:
   return utils.find_resource(cs.servers, server, wrap_exception=False)
  except exceptions.NoUniqueMatch as e:
   raise exceptions.CommandError(six.text_type(e))
  except exceptions.NotFound:
   return server

def _find_server ( cs , server , raise_if_notfound = True , ** find_args ) : if raise_if_notfound : return utils . find_resource ( cs . servers , server , ** find_args ) else : try : return utils . find_resource ( cs . servers , server , wrap_exception = False ) except exceptions . NoUniqueMatch as e : raise exceptions . CommandError ( six . text_type ( e ) ) except exceptions . NotFound : return server
get a server by name or id .