diff options
author | 2017-02-09 16:11:31 +0800 | |
---|---|---|
committer | 2017-02-09 16:11:31 +0800 | |
commit | 96b0c6d5c4b6ab583b4ac0081ac7c055651406d5 (patch) | |
tree | 07b4eea35654a1ed33d7db101fe65698cd09b1a0 /lcm | |
parent | 1370f781490fbc020c1e5b039ad6e997cc603cce (diff) |
Check whether the database is updated
Change-Id: I2b98e7246a6c644a5b73a5767a2e60a35a1ca784
Issue-Id: GVNFM-16
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r-- | lcm/lcm/nf/vnfs/vnf_create/create_vnf_identifier.py | 3 |
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 |