From 5c730775209a8f8f2d0291ddf5c1eeb419a3bdbc Mon Sep 17 00:00:00 2001
From: Koji Nakazono <nakazono_0507@jp.fujitsu.com>
Date: Tue, 12 Apr 2016 10:27:31 +0900
Subject: [PATCH] FIX handling json data with multibyte characters

"json.dumps" function returns encoded value when specifying
"ensure_ascii=False", so it's not necessary to encode the returned
value.

Change-Id: Ic4834a27d36993cd9f4d2b6945cf108e7149d95b
Closes-Bug: 1569112
---
 monasca_common/rest/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/monasca_common/rest/utils.py b/monasca_common/rest/utils.py
index 36ae3cd1..43757c17 100644
--- a/monasca_common/rest/utils.py
+++ b/monasca_common/rest/utils.py
@@ -53,7 +53,7 @@ def as_json(data, **kwargs):
 
     data = json.dumps(data, **kwargs)
 
-    return data.encode(ENCODING)
+    return data
 
 
 @_try_catch