add deployment_backend choice to host-detail
Change-Id: Iae7e99972144e7353c953e9d7510013be52cc83c Signed-off-by: Zhou Ya <zhou.ya@zte.com.cn>
This commit is contained in:
@@ -128,6 +128,12 @@ class HostManager(base.ManagerWithFind):
|
|||||||
host_id = base.getid(host)
|
host_id = base.getid(host)
|
||||||
resp, body = self.client.get('/v1/nodes/%s'
|
resp, body = self.client.get('/v1/nodes/%s'
|
||||||
% urlparse.quote(str(host_id)))
|
% urlparse.quote(str(host_id)))
|
||||||
|
backend_data = {u'deployment_backend': None}
|
||||||
|
resp_extra, get_deployment_backend = self.client.get(
|
||||||
|
'/v1/roles/detail?limit=20')
|
||||||
|
backend_data[u'deployment_backend'] = get_deployment_backend[
|
||||||
|
'roles'][0]['deployment_backend']
|
||||||
|
body['host'].update(backend_data)
|
||||||
# meta = self._host_meta_from_headers(resp.headers)
|
# meta = self._host_meta_from_headers(resp.headers)
|
||||||
return_request_id = kwargs.get('return_req_id', None)
|
return_request_id = kwargs.get('return_req_id', None)
|
||||||
if return_request_id is not None:
|
if return_request_id is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user