diff options
author | Huang Haibin <haibin.huang@intel.com> | 2018-07-24 21:01:13 +0800 |
---|---|---|
committer | Huang Haibin <haibin.huang@intel.com> | 2018-08-02 08:51:01 +0800 |
commit | b4b717479b66d21e91d573023726c0b7486d9fc1 (patch) | |
tree | a75c228c63fb4a896f8167b1a00a8b241b787ff7 /lcm | |
parent | 6340336bdf5e80206cac55feed20fca4252c30d0 (diff) |
save flavor cannot get returnCode
Change-Id: I949eae10f5495900a7be575714a95bcb592cebaf
Issue-ID: VFC-972
Signed-off-by: Huang Haibin <haibin.huang@intel.com>
Diffstat (limited to 'lcm')
-rw-r--r-- | lcm/lcm/nf/vnf_create/inst_vnf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/lcm/nf/vnf_create/inst_vnf.py b/lcm/lcm/nf/vnf_create/inst_vnf.py index 9ae25151..b87602c9 100644 --- a/lcm/lcm/nf/vnf_create/inst_vnf.py +++ b/lcm/lcm/nf/vnf_create/inst_vnf.py @@ -338,7 +338,7 @@ def flavor_save(job_id, nf_inst_id, ret): swap=get_integer(ignore_case_get(ret, "swap")), isPublic=get_boolean(ignore_case_get(ret, "isPublic")), extraspecs=ignore_case_get(ret, "extraSpecs"), - is_predefined=ignore_case_get(ret, "returnCode"), + is_predefined=ret.get("returnCode", int(0)), instid=nf_inst_id) |