Merge "Use jsonutils to load adapter response"
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from keystoneclient.openstack.common import jsonutils
|
||||||
from keystoneclient import utils
|
from keystoneclient import utils
|
||||||
|
|
||||||
|
|
||||||
@@ -108,7 +109,7 @@ class LegacyJsonAdapter(Adapter):
|
|||||||
body = None
|
body = None
|
||||||
if resp.text:
|
if resp.text:
|
||||||
try:
|
try:
|
||||||
body = resp.json()
|
body = jsonutils.loads(resp.text)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user