From: ying.yunlong Date: Thu, 9 Feb 2017 08:11:31 +0000 (+0800) Subject: Check whether the database is updated X-Git-Tag: release/mercury~125^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=96b0c6d5c4b6ab583b4ac0081ac7c055651406d5;p=vfc%2Fgvnfm%2Fvnflcm.git Check whether the database is updated Change-Id: I2b98e7246a6c644a5b73a5767a2e60a35a1ca784 Issue-Id: GVNFM-16 Signed-off-by: ying.yunlong --- 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