diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-04-09 14:26:55 +0800 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-04-09 14:28:35 +0800 |
commit | 6e0e099e6098919145d581fd29bac597b4e82b19 (patch) | |
tree | 18deb6823c0c0af9e9db32ec321f277f89e71275 | |
parent | a2303cd2db3dd71ed1d02b19ef15ed7de5505271 (diff) |
Fix a bug in check_vim_capacity
Use json to convert dict to json
Change-Id: Ibb0dc6cfd34c6760d15b1fbbdb76855215f77cdc
Issue-ID: MULTICLOUD-166
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-rw-r--r-- | multivimbroker/multivimbroker/forwarder/views.py | 2 |
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: |