mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove int(), just return -1
This commit is contained in:
parent
7d56126d74
commit
b0053250ff
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ def get_pidfile(pidfile):
|
|||
pid = pdf.read().strip()
|
||||
return int(pid)
|
||||
except (OSError, IOError, TypeError, ValueError):
|
||||
return int(-1)
|
||||
return -1
|
||||
|
||||
|
||||
def clean_proc(proc, wait_for_kill=10):
|
||||
|
|
Loading…
Add table
Reference in a new issue