diff options
author | bran-wang <branw@vmware.com> | 2017-04-04 09:44:59 +0800 |
---|---|---|
committer | bran-wang <branw@vmware.com> | 2017-04-04 09:44:59 +0800 |
commit | 7718ce45bc14def8528a1c8c24dab07ddf1fb39a (patch) | |
tree | 564b271e32660dc7c78178e2d6906132610d920c /vio | |
parent | 86abddb5cb581e2e14bc47bed7c404a1fbf66fcd (diff) |
fix get host by name
Change-Id: I969f26826d0808831acf5d84894ad51303b9957a
Issue-Id: MULTIVIM-36
Signed-off-by: branw <branw@vmware.com>
Diffstat (limited to 'vio')
-rw-r--r-- | vio/vio/pub/vim/vimapi/nova/OperateHypervisor.py | 2 | ||||
-rw-r--r-- | vio/vio/swagger/views/hypervisor/views.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/vio/vio/pub/vim/vimapi/nova/OperateHypervisor.py b/vio/vio/pub/vim/vimapi/nova/OperateHypervisor.py index 8b3de91..d48b421 100644 --- a/vio/vio/pub/vim/vimapi/nova/OperateHypervisor.py +++ b/vio/vio/pub/vim/vimapi/nova/OperateHypervisor.py @@ -24,7 +24,7 @@ class OperateHypervisor(OperateNova): def get_hypervisor(self, data, hypervisor, **kwargs): try: return self.request('get_hypervisor', data, - project_name=data['project_name'], + project_id=data['project_id'], hypervisor=hypervisor, **kwargs) except exceptions.ResourceNotFound: diff --git a/vio/vio/swagger/views/hypervisor/views.py b/vio/vio/swagger/views/hypervisor/views.py index bada577..2b96524 100644 --- a/vio/vio/swagger/views/hypervisor/views.py +++ b/vio/vio/swagger/views/hypervisor/views.py @@ -37,7 +37,9 @@ class HostView(APIView): 'username': vim_info['userName'], 'password': vim_info['password'], 'url': vim_info['url'], - 'project_id': tenantid} + 'project_id': tenantid, + 'user_domain_name': 'default', + 'project_domain_name': 'default'} hypervisor_op = OperateHypervisor.OperateHypervisor() try: |