diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-04-03 09:46:55 +0000 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2019-04-03 09:59:49 +0000 |
commit | 012a14db776e9a6c24acecec2e46dac2b8611b65 (patch) | |
tree | 7159ac6d7a3ce25fea2129d2c74de4e6084b2f0a /multivimbroker | |
parent | d746523f28c7de4feabfd2d9ac56554d37884adc (diff) |
Update capacity_check API in broker
Return the AZinfo list
Change-Id: I439381d0012cac422dd8781698a594f980eddad6
Issue-ID: MULTICLOUD-563
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'multivimbroker')
-rw-r--r-- | multivimbroker/multivimbroker/forwarder/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/multivimbroker/multivimbroker/forwarder/views.py b/multivimbroker/multivimbroker/forwarder/views.py index 5c7cd0a..19e69f0 100644 --- a/multivimbroker/multivimbroker/forwarder/views.py +++ b/multivimbroker/multivimbroker/forwarder/views.py @@ -233,6 +233,8 @@ class APIv1CheckCapacity(CheckCapacity): continue if not resp_body.get("result", False): continue + azCapInfo = resp_body.get("AZs", []) + vim["AZs"] = azCapInfo ret['VIMs'].append(vim) return Response(data=ret, status=status.HTTP_200_OK) |