def get_runner(module_name):
 LOG.debug('Runner loading python module: %s', module_name)
 try:
  module = register_runner(module_name)
 except Exception as e:
  LOG.exception('Failed to import module %s.', module_name)
  raise ActionRunnerCreateError(e)
 LOG.debug('Instance of runner module: %s', module)
 runner = module.get_runner()
 LOG.debug('Instance of runner: %s', runner)
 return runner

def get_runner ( module_name ) : LOG . debug ( 'Runner loading python module: %s' , module_name ) try : module = register_runner ( module_name ) except Exception as e : LOG . exception ( 'Failed to import module %s.' , module_name ) raise ActionRunnerCreateError ( e ) LOG . debug ( 'Instance of runner module: %s' , module ) runner = module . get_runner ( ) LOG . debug ( 'Instance of runner: %s' , runner ) return runner
load the module and return an instance of the runner .