From: maopengzhang Date: Sat, 10 Nov 2018 08:44:29 +0000 (+0800) Subject: fix PNF create parameters error X-Git-Tag: 3.0.0-ONAP~8 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F72359%2F1;p=vfc%2Fnfvo%2Flcm.git fix PNF create parameters error fix create parameters error Change-Id: Ia1430797b1e036e8bacabad775073707bd8cd0e7 Issue-ID: VFC-1158 Signed-off-by: maopengzhang --- diff --git a/lcm/workflows/build_in.py b/lcm/workflows/build_in.py index 993efbe6..fa267855 100644 --- a/lcm/workflows/build_in.py +++ b/lcm/workflows/build_in.py @@ -279,7 +279,7 @@ def confirm_sfc_status(sfc_inst_id): def create_pnf(pnf_param_json): if pnf_param_json and len(pnf_param_json) > 0: pnfs = json.JSONDecoder().decode(pnf_param_json) - for pnf in pnfs: + for pnf in pnfs.itervalues(): uri = "/api/nslcm/v1/pnfs" method = "POST" content = json.JSONEncoder().encode(pnf["input"]["content"])