logger.debug("runner: reading config from %s", conf)
config.read(conf)
- entry_point_group = "gerrit-hooks"
+ entry_point_group = "gerrithooks"
logger.debug("runner: looking for plugins in entry %s", entry_point_group)
for entry_point in iter_entry_points(group=entry_point_group, name=hook):
logger.debug("Loading plugin %s from %s",
- entry_point.name, entry_point.module)
+ entry_point.name, entry_point.module_name)
plugin = entry_point.load()
logger.debug("Executing plugin %s", entry_point.name)
- plugin(hook=hook, params=params, config=config, extra=extra_params)
+ plugin(hook=hook, config=config, logger=logger,
+ params=params, extra_params=extra_params)
logger.info("done")
return 0