summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-02-18 10:01:31 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-02-18 10:01:31 +0800
commit549608a524f33c3aa485823ac0fe9fede2ff4a27 (patch)
tree8d9125220f60264c04479cb2b19ff44455de0f21 /lcm
parent81b7794eadea9570fe0d0a3ee9a82e0bd4686b6e (diff)
Fix pep8 error
Change-Id: I27b4f0a516c4cf315d648537a33b23c0263d64a9 Issue-ID: VFC-1163 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/biz/delete_vnf.py6
-rw-r--r--lcm/lcm/nf/views/heal_vnf_view.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/lcm/lcm/nf/biz/delete_vnf.py b/lcm/lcm/nf/biz/delete_vnf.py
index 6148e6a6..df50944f 100644
--- a/lcm/lcm/nf/biz/delete_vnf.py
+++ b/lcm/lcm/nf/biz/delete_vnf.py
@@ -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)
diff --git a/lcm/lcm/nf/views/heal_vnf_view.py b/lcm/lcm/nf/views/heal_vnf_view.py
index 4c2fad0e..b30194df 100644
--- a/lcm/lcm/nf/views/heal_vnf_view.py
+++ b/lcm/lcm/nf/views/heal_vnf_view.py
@@ -66,7 +66,7 @@ class HealVnfView(APIView):
probDetail = ProblemDetailsSerializer(data={"status": status.HTTP_409_CONFLICT, "detail": "VNF Instance not in Instantiated State"})
resp_isvalid = probDetail.is_valid()
if not resp_isvalid:
- raise NFLCMException(probDetail.errors)
+ raise NFLCMException(probDetail.errors)
return Response(data=probDetail.data, status=status.HTTP_409_CONFLICT)
except NFLCMException as e:
logger.error(e.message)