diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-02-13 16:57:17 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-02-13 16:57:17 +0000 |
commit | 6f6f23b8bb2a116641b7514cb97ae1e687e28173 (patch) | |
tree | 9ab8f00671cd7d1c1536436f5316e6fc603e50cd | |
parent | ab47e4bd58b7b043b2b6efd06d0f363478ff389c (diff) | |
parent | c834ddd2dccd90dc1d2aa5f4698635549052a24f (diff) | |
download | pycadf-6f6f23b8bb2a116641b7514cb97ae1e687e28173.tar.gz |
Merge "Add deprecation message to Audit API"0.8.0
-rw-r--r-- | pycadf/audit/api.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pycadf/audit/api.py b/pycadf/audit/api.py index 6d70ed2..e7fa2ca 100644 --- a/pycadf/audit/api.py +++ b/pycadf/audit/api.py @@ -14,6 +14,7 @@ import ast import collections +import logging import os import re @@ -21,6 +22,7 @@ from oslo_config import cfg from six.moves import configparser from six.moves.urllib import parse as urlparse +from pycadf._i18n import _LW from pycadf import cadftaxonomy as taxonomy from pycadf import cadftype from pycadf import credential @@ -48,6 +50,8 @@ AuditMap = collections.namedtuple('AuditMap', 'service_endpoints', 'default_target_endpoint_type']) +LOG = logging.getLogger(__name__) + def _configure_audit_map(cfg_file): """Configure to recognize and map known api paths.""" @@ -115,6 +119,9 @@ class OpenStackAuditApi(object): 'public_endp', 'private_endp']) 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): |