Beispiel #1
0
 def __init__(self, map_file=None):
     LOG.warning(_LW('pyCADF audit API is deprecated as of version 0.8.0,'
                     ' in favour of keystonemiddleware.audit.'
                     'OpenStackAuditApi'))
     if map_file is None:
         map_file = CONF.audit.api_audit_map
         if not os.path.exists(CONF.audit.api_audit_map):
             map_file = cfg.CONF.find_file(CONF.audit.api_audit_map)
     self._MAP = _configure_audit_map(map_file)
Beispiel #2
0
 def __init__(self, app, **conf):
     super(AuditMiddleware, self).__init__(app, **conf)
     LOG = logging.getLogger(conf.get("log_name", __name__))
     LOG.warning(
         _LW(
             "pyCADF middleware is deprecated as of version 0.7.0,"
             " in favour of keystonemiddleware.audit."
             "AuditMiddleware"
         )
     )
     map_file = conf.get("audit_map_file", None)
     self.cadf_audit = cadf_api.OpenStackAuditApi(map_file)