Merge "Make remove_service_catalog private"
This commit is contained in:
commit
96c038004f
@ -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)
|
||||
|
||||
@ -206,7 +206,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…
x
Reference in New Issue
Block a user