summaryrefslogtreecommitdiffstats
path: root/lcm/ns_vnfs/biz/create_vnfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'lcm/ns_vnfs/biz/create_vnfs.py')
-rw-r--r--lcm/ns_vnfs/biz/create_vnfs.py3
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 = [