Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Modify code of create vm
[vfc/gvnfm/vnflcm.git]
/
lcm
/
lcm
/
pub
/
vimapi
/
adaptor.py
diff --git
a/lcm/lcm/pub/vimapi/adaptor.py
b/lcm/lcm/pub/vimapi/adaptor.py
index
593d779
..
4b15670
100644
(file)
--- 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:
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
if vm_info["status"].upper() == "ACTIVE":
logger.debug("Vm(%s) is active", vim_id)
return