reformat code according to pep8

This commit is contained in:
VirtuBox
2019-04-29 02:06:32 +02:00
parent 0508592d2a
commit 9de9ba8637
6 changed files with 57 additions and 51 deletions

View File

@@ -116,7 +116,8 @@ class WOService():
try:
is_exist = subprocess.getstatusoutput('which {0}'
.format(service_name))
if is_exist[0] == 0 or service_name in ['php7.2-fpm', 'php7.3-fpm']:
if is_exist[0] == 0 or service_name in ['php7.2-fpm',
'php7.3-fpm']:
retcode = subprocess.getstatusoutput('service {0} status'
.format(service_name))
if retcode[0] == 0: