Code Review
/
vfc
/
nfvo
/
lcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
458808b
)
Fix create vnfs bug
99/99599/2
author
zhaoliping123
<zhaoliping@chinamobile.com>
Fri, 13 Dec 2019 09:32:17 +0000
(17:32 +0800)
committer
zhaoliping123
<zhaoliping@chinamobile.com>
Fri, 13 Dec 2019 09:37:42 +0000
(17:37 +0800)
Issue-ID: VFC-1593
Change-Id: Ib05e8c53d64888852a7343317690c7987c790bb4
Signed-off-by: zhaoliping123 <zhaoliping@chinamobile.com>
lcm/ns_vnfs/biz/create_vnfs.py
patch
|
blob
|
history
diff --git
a/lcm/ns_vnfs/biz/create_vnfs.py
b/lcm/ns_vnfs/biz/create_vnfs.py
index
cb64532
..
3e98471
100644
(file)
--- 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 = [