Make remove_service_catalog private

This is a utility function that is used for reducing the amount of data
that is logged. It shouldn't be a public function.

I think there is very little risk from this in terms of compatibility as
it was only added recently.

Change-Id: I003e9f11be478b1282ea9cf179f2dd13e1672a80
This commit is contained in:
Jamie Lennox
2015-02-10 15:25:36 +11:00
parent 75fcdfb2e1
commit e3ae196433

View File

@@ -54,7 +54,7 @@ def request(url, method='GET', **kwargs):
return Session().request(url, method=method, **kwargs)
def remove_service_catalog(body):
def _remove_service_catalog(body):
try:
data = jsonutils.loads(body)
except ValueError:
@@ -201,7 +201,7 @@ class Session(object):
if not headers:
headers = response.headers
if not text:
text = remove_service_catalog(response.text)
text = _remove_service_catalog(response.text)
if json:
text = jsonutils.dumps(json)