From fb43b4ac65cf675dbbc268e7a38f3e4d0d5a5792 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 6 Dec 2019 19:16:17 +0800 Subject: [PATCH] Update index.py --- plugins/jenkins/index.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/jenkins/index.py b/plugins/jenkins/index.py index a90a565ac..6bd7e096f 100755 --- a/plugins/jenkins/index.py +++ b/plugins/jenkins/index.py @@ -80,9 +80,9 @@ def start(): return "Apple Computer does not support" data = public.execShell('service jenkins start') - if data[0] == '': + if data[1] == '': return 'ok' - return data[1] + return 'fail' def stop(): @@ -90,23 +90,23 @@ def stop(): return "Apple Computer does not support" data = public.execShell('service jenkins stop') - if data[0] == '': + if data[1] == '': return 'ok' - return data[1] + return 'fail' def restart(): data = public.execShell('service jenkins restart') - if data[0] == '': + if data[1] == '': return 'ok' - return data[1] + return 'fail' def reload(): data = public.execShell('service jenkins restart') - if data[0] == '': + if data[1] == '': return 'ok' - return data[1] + return 'fail' def initdStatus():