def _service_get(s_name, **connection_args):
 nitro = _connect(**connection_args)
 if (nitro is None):
  return None
 service = NSService()
 service.set_name(s_name)
 try:
  service = NSService.get(nitro, service)
 except NSNitroError as error:
  log.debug('netscaler module error - NSService.get() failed: {0}'.format(error))
  service = None
 _disconnect(nitro)
 return service

def _service_get ( s_name , ** connection_args ) : nitro = _connect ( ** connection_args ) if ( nitro is None ) : return None service = NSService ( ) service . set_name ( s_name ) try : service = NSService . get ( nitro , service ) except NSNitroError as error : log . debug ( 'netscaler module error - NSService.get() failed: {0}' . format ( error ) ) service = None _disconnect ( nitro ) return service
returns a service ressource or none .