summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiang Ke <lokyse@163.com>2018-04-09 06:39:32 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-09 06:39:32 +0000
commit3a5ab188980db59049c9b0318fd6facddccce366 (patch)
treea388e0589405714ee8b8d85cc058b1570638ff2d
parentdd5aa4a740e7a75acacba3623e36ef08b740e8e0 (diff)
parent6e0e099e6098919145d581fd29bac597b4e82b19 (diff)
Merge "Fix a bug in check_vim_capacity"
-rw-r--r--multivimbroker/multivimbroker/forwarder/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/multivimbroker/multivimbroker/forwarder/views.py b/multivimbroker/multivimbroker/forwarder/views.py
index 4f6e6ef..89e222a 100644
--- a/multivimbroker/multivimbroker/forwarder/views.py
+++ b/multivimbroker/multivimbroker/forwarder/views.py
@@ -113,7 +113,7 @@ class CheckCapacity(BaseServer):
for vim in body.get("VIMs", []):
url = request.get_full_path().replace(
"check_vim_capacity", "%s/capacity_check" % vim)
- resp = self.send(vim, url, str(newbody), "POST")
+ resp = self.send(vim, url, json.dumps(newbody), "POST")
if int(resp.status_code) != status.HTTP_200_OK:
continue
try: