summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-23 13:50:00 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-23 13:50:00 +0800
commit83a16627302dce94119dd810b6fe4c32e6aae61a (patch)
tree2ee2843ffe561918bcd92b33bfda2389930b360c
parenta3b4fa60bf755e8d86632bc3f5de7c183dc544ed (diff)
Fix pep8 error for vfc-nfvo-lcm/jobs
Change-Id: I8b69387e605647b6f713e2854fd4bf11ccd74c3f Issue-Id: VFC-444 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/jobs/job_get.py2
-rw-r--r--lcm/jobs/views.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/lcm/jobs/job_get.py b/lcm/jobs/job_get.py
index a85bf8f1..4619f62d 100644
--- a/lcm/jobs/job_get.py
+++ b/lcm/jobs/job_get.py
@@ -24,7 +24,7 @@ class GetJobInfoService(object):
self.response_id = response_id if response_id else 0
def do_biz(self):
- #logger.info("get job info, job_id=:%s, response_id=:%s" % (self.job_id, self.response_id))
+ logger.debug("[getjob]job_id=%s, response_id=%s", self.job_id, self.response_id)
jobs = JobUtil.query_job_status(self.job_id, self.response_id)
if not jobs:
return {"jobId": self.job_id}
diff --git a/lcm/jobs/views.py b/lcm/jobs/views.py
index 2c971d49..acbb5fe9 100644
--- a/lcm/jobs/views.py
+++ b/lcm/jobs/views.py
@@ -22,6 +22,7 @@ from lcm.pub.utils.values import ignore_case_get
logger = logging.getLogger(__name__)
+
class JobView(APIView):
def get(self, request, job_id):
response_id = ignore_case_get(request.META, 'responseId')