summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/pub/vimapi/adaptor.py
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-02-23 16:19:40 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-02-23 16:19:40 +0800
commitf74e80669eb2ea45755fd7b111bfa7852c4a03f2 (patch)
tree75b6592692b959bb5b3bcb9597ec5674b33431d6 /lcm/lcm/pub/vimapi/adaptor.py
parentd672544f4b8c9a8b181b0f7feb6cf4ff710e0362 (diff)
Modify code of create vm
Change-Id: Iaa31228ce2c0c0dfb39e3f4d0a277522f5b6aa47 Issue-Id: GVNFM-34 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm/lcm/pub/vimapi/adaptor.py')
-rw-r--r--lcm/lcm/pub/vimapi/adaptor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/lcm/pub/vimapi/adaptor.py b/lcm/lcm/pub/vimapi/adaptor.py
index 593d779d..4b156708 100644
--- a/lcm/lcm/pub/vimapi/adaptor.py
+++ b/lcm/lcm/pub/vimapi/adaptor.py
@@ -277,7 +277,7 @@ def create_vm(vim_cache, res_cache, data, vm, do_notify, res_type):
opt_vm_status = "Timeout"
retry_count, max_retry_count = 0, 100
while retry_count < max_retry_count:
- vm_info = api.get_vm(vim_id, vm_id)
+ vm_info = api.get_vm(vim_id, tenant_id, vm_id)
if vm_info["status"].upper() == "ACTIVE":
logger.debug("Vm(%s) is active", vim_id)
return