diff options
author | zhaoliping123 <zhaoliping@chinamobile.com> | 2019-12-13 17:32:17 +0800 |
---|---|---|
committer | zhaoliping123 <zhaoliping@chinamobile.com> | 2019-12-13 17:37:42 +0800 |
commit | 975f35644dca14ce3768187a2e3c8675273f8d44 (patch) | |
tree | 768fc17273ff67457fab41d60e8041015a72da60 | |
parent | 458808ba470b4fba7acedb4e5f6dba8d6363cb0f (diff) |
Fix create vnfs bug
Issue-ID: VFC-1593
Change-Id: Ib05e8c53d64888852a7343317690c7987c790bb4
Signed-off-by: zhaoliping123 <zhaoliping@chinamobile.com>
-rw-r--r-- | lcm/ns_vnfs/biz/create_vnfs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lcm/ns_vnfs/biz/create_vnfs.py b/lcm/ns_vnfs/biz/create_vnfs.py index cb645322..3e984717 100644 --- a/lcm/ns_vnfs/biz/create_vnfs.py +++ b/lcm/ns_vnfs/biz/create_vnfs.py @@ -262,7 +262,8 @@ class CreateVnfs(Thread): # identifiers.append(vim_info[1]) # cloudOwner = vim_info[0] identifiers = list() - self.vim_id = json.loads(self.vim_id) + if type(self.vim_id) == str: + self.vim_id = json.loads(self.vim_id) identifiers.append(self.vim_id['cloud_regionid']) cloudOwner = self.vim_id['cloud_owner'] required_candidate = [ |