summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
Diffstat (limited to 'vio')
-rw-r--r--vio/vio/pub/vim/vimapi/nova/OperateHypervisor.py2
-rw-r--r--vio/vio/swagger/views/hypervisor/views.py4
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: