Issue: GVNFM-50
Change-Id: I78bcaab63f74e595f47eafbdb107c2d8bbb2154c
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
def convert_factor_unit(value):
def convert_factor_unit(value):
- return "%s %s" % (value["factor"], value["unit"])
+ return value
+ #return "%s %s" % (value["factor"], value["unit"])
def convert_inputs(src_json):
def convert_inputs(src_json):
ret = api.create_vm(vim_id, tenant_id, param)
do_notify(res_type, ret)
ret = api.create_vm(vim_id, tenant_id, param)
do_notify(res_type, ret)
- vm_id, vm_name, return_code = ret["id"], ret["name"], ret["returnCode"]
+ #vm_id, vm_name, return_code = ret["id"], ret["name"], ret["returnCode"]
+ vm_id, return_code = ret["id"], ret["returnCode"]
+ if ignore_case_get(ret, "name"):
+ vm_name = vm["properties"]["name"]
+ logger.debug("vm_name:%s" % vm_name)
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: