diff options
author | Gordon Chung <chungg@ca.ibm.com> | 2014-02-03 17:05:04 -0500 |
---|---|---|
committer | Gordon Chung <chungg@ca.ibm.com> | 2014-02-03 17:05:04 -0500 |
commit | 9418cfe950cd71fb441c4d3116b599914d43f3f1 (patch) | |
tree | 4270ef8e5656d13106bd0a4e4a61f3094ef85f0f /pycadf | |
parent | 2c3e366e8a635c1b3cbfa6f7195fc53e6e8c0025 (diff) | |
download | pycadf-9418cfe950cd71fb441c4d3116b599914d43f3f1.tar.gz |
update build_typeURI to drop query string
capture query string in requestPath attribute. use path sans query
string to build typeURI
Change-Id: Ia4ad4ada6172ad56d2f17665942fb7a767f97c3e
Diffstat (limited to 'pycadf')
-rw-r--r-- | pycadf/audit/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pycadf/audit/api.py b/pycadf/audit/api.py index 23b0b6b..3b7686a 100644 --- a/pycadf/audit/api.py +++ b/pycadf/audit/api.py @@ -198,7 +198,7 @@ class OpenStackAuditApi(object): def _build_typeURI(self, req, service_type): type_uri = '' prev_key = None - for key in re.split('/', req.path_qs): + for key in re.split('/', req.path): if key in self._MAP.path_kw: type_uri += '/' + key elif prev_key in self._MAP.path_kw: @@ -266,7 +266,7 @@ class OpenStackAuditApi(object): initiator=initiator, target=target, observer=resource.Resource(id='target')) - event.requestPath = req.path + event.requestPath = req.path_qs event.add_tag(tag.generate_name_value_tag('correlation_id', correlation_id)) return event |