Fix pep8 error 19/78619/1
authorfujinhua <fu.jinhua@zte.com.cn>
Mon, 18 Feb 2019 02:01:31 +0000 (10:01 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Mon, 18 Feb 2019 02:01:31 +0000 (10:01 +0800)
Change-Id: I27b4f0a516c4cf315d648537a33b23c0263d64a9
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/lcm/nf/biz/delete_vnf.py
lcm/lcm/nf/views/heal_vnf_view.py

index 6148e6a..df50944 100644 (file)
@@ -25,9 +25,9 @@ class DeleteVnf:
         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)
index 4c2fad0..b30194d 100644 (file)
@@ -66,7 +66,7 @@ class HealVnfView(APIView):
             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