Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
* Added whitespace after keyword

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
  • Loading branch information
Akasurde committed Aug 9, 2022
1 parent 3461a40 commit e273d4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions ansible_runner/__main__.py
Expand Up @@ -869,21 +869,21 @@ def main(sys_args=None):
else:
sys.stderr.write(exc)
return 1
return(res.rc)
return res.rc

try:
with open(pidfile, 'r') as f:
pid = int(f.readline())
except IOError:
return(1)
return 1

if vargs.get('command') == 'stop':
Runner.handle_termination(pid, pidfile=pidfile)
return (0)
return 0

elif vargs.get('command') == 'is-alive':
try:
os.kill(pid, signal.SIG_DFL)
return(0)
return 0
except OSError:
return(1)
return 1
4 changes: 2 additions & 2 deletions ansible_runner/cleanup.py
Expand Up @@ -79,9 +79,9 @@ def is_alive(dir):

try:
os.kill(pid, signal.SIG_DFL)
return(0)
return 0
except OSError:
return(1)
return 1


def project_idents(dir):
Expand Down

0 comments on commit e273d4d

Please sign in to comment.