def _init_extensions(self): """ Loads and prepares all enabled extensions """ enabled_notification_handlers = cfg.CONF["service:sink"].enabled_notification_handlers notification_handlers = notification_handler.get_notification_handlers(enabled_notification_handlers) if len(notification_handlers) == 0: # No handlers enabled. Bail! raise exceptions.ConfigurationError("No designate-sink handlers " "enabled or loaded") return notification_handlers
def _init_extensions(self): """Loads and prepares all enabled extensions""" enabled_notification_handlers = \ cfg.CONF['service:sink'].enabled_notification_handlers notification_handlers = notification_handler.get_notification_handlers( enabled_notification_handlers) if len(notification_handlers) == 0: LOG.warning('No designate-sink handlers enabled or loaded') return notification_handlers
def _init_extensions(): """Loads and prepares all enabled extensions""" enabled_notification_handlers = \ cfg.CONF['service:sink'].enabled_notification_handlers notification_handlers = notification_handler.get_notification_handlers( enabled_notification_handlers) if len(notification_handlers) == 0: LOG.warning('No designate-sink handlers enabled or loaded') return notification_handlers
def _init_extensions(self): """ Loads and prepares all enabled extensions """ enabled_notification_handlers = \ cfg.CONF['service:sink'].enabled_notification_handlers notification_handlers = notification_handler.get_notification_handlers( enabled_notification_handlers) if len(notification_handlers) == 0: # No handlers enabled. Bail! raise exceptions.ConfigurationError('No designate-sink handlers ' 'enabled or loaded') return notification_handlers