summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-04-25 09:35:21 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-04-25 09:35:21 +0800
commit56317b07f492c7e7a47ef3f39866291b0d2df6c2 (patch)
tree54699b94077b92b54a782b444ac3a47790bb6121 /lcm
parent44282da523cb50cb1d1b08081c1da1b9a7f2e0d1 (diff)
Fix bug of delete vnfs
Change-Id: Ic90eccf067ecb3f268a0b8f7a55548e2956aed0f Issue-Id: GVNFM-50 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py b/lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py
index 413d4884..c2afe07d 100644
--- a/lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py
+++ b/lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py
@@ -13,7 +13,7 @@
# limitations under the License.
import logging
-from lcm.pub.database.models import NfInstModel
+from lcm.pub.database.models import NfInstModel, NfvoRegInfoModel
from lcm.pub.exceptions import NFLCMException
logger = logging.getLogger(__name__)
@@ -29,7 +29,7 @@ class DeleteVnf:
if not vnf_insts.exists():
logger.warn('VnfInst(%s) does not exist' % self.nf_inst_id)
return
- sel_vnf = vnf_insts[0]
+ #sel_vnf = vnf_insts[0]
#if sel_vnf.status != 'NOT_INSTANTIATED':
# raise NFLCMException("Don't allow to delete vnf(status:[%s])" % sel_vnf.status)
NfInstModel.objects.filter(nfinstid=self.nf_inst_id).delete()