summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authoryunlong ying <ying.yunlong@zte.com.cn>2017-02-09 08:21:36 +0000
committerGerrit Code Review <gerrit@open-o.org>2017-02-09 08:21:36 +0000
commite25ddc552d1a5f82d86c64666ba5977052ed97c1 (patch)
tree37018400b11cf7de6525ab781deacd0912cf1e38 /lcm
parent66de1fbb4881933e17abda204cf5657f91e8b471 (diff)
parent96b0c6d5c4b6ab583b4ac0081ac7c055651406d5 (diff)
Merge "Check whether the database is updated"
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/vnfs/vnf_create/create_vnf_identifier.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lcm/lcm/nf/vnfs/vnf_create/create_vnf_identifier.py b/lcm/lcm/nf/vnfs/vnf_create/create_vnf_identifier.py
index 0eb4474e..bb7f80a7 100644
--- a/lcm/lcm/nf/vnfs/vnf_create/create_vnf_identifier.py
+++ b/lcm/lcm/nf/vnfs/vnf_create/create_vnf_identifier.py
@@ -62,4 +62,7 @@ class CreateVnf:
localizationLanguage='EN_US',create_time=now_time())
is_exist = NfInstModel.objects.filter(nf_name=self.vnf_instance_mame).exists()
logger.debug("check_ns_inst_name_exist::is_exist=%s" % is_exist)
+ vnf_inst = NfInstModel.objects.get(nfinstid=self.nf_inst_id)
+ logger.debug('id is [%s],name is [%s],vnfd_id is [%s],description is [%s],create_time is [%s]' %
+ (vnf_inst.nfinstid, vnf_inst.nf_name, vnf_inst.vnfdid, vnf_inst.nf_desc, vnf_inst.create_time))
return self.nf_inst_id \ No newline at end of file