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 17, 2022
1 parent 3461a40 commit cd79bdb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 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
2 changes: 0 additions & 2 deletions tools/requirements.txt
Expand Up @@ -2,8 +2,6 @@ ansible-core
ncclient
paramiko
pyOpenSSL<20.0.0 # Transient dependency for credssp support.
pypsrp[kerberos,credssp]
pywinrm[kerberos,credssp]
toml
pexpect>=4.5
python-daemon
Expand Down

0 comments on commit cd79bdb

Please sign in to comment.