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:
parent
a3fd4e8570
commit
d55fdf0841
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue