Change-Id: I27b4f0a516c4cf315d648537a33b23c0263d64a9
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
self.nf_inst_id = instanceid
def do_biz(self):
- self.check_parameter()
- self.delete_info_from_db()
- logger.debug('VnfInst(%s) is deleted.' % self.nf_inst_id)
+ self.check_parameter()
+ self.delete_info_from_db()
+ logger.debug('VnfInst(%s) is deleted.' % self.nf_inst_id)
def check_parameter(self):
vnf_insts = NfInstModel.objects.filter(nfinstid=self.nf_inst_id)
probDetail = ProblemDetailsSerializer(data={"status": status.HTTP_409_CONFLICT, "detail": "VNF Instance not in Instantiated State"})\r
resp_isvalid = probDetail.is_valid()\r
if not resp_isvalid:\r
- raise NFLCMException(probDetail.errors)\r
+ raise NFLCMException(probDetail.errors)\r
return Response(data=probDetail.data, status=status.HTTP_409_CONFLICT)\r
except NFLCMException as e:\r
logger.error(e.message)\r