mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #46293 from eliasp/2017.7-44624-py3-compat
Fix Python3 comparison `TypeError` in `salt.modules.upstart`
This commit is contained in:
commit
978e869490
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ def _find_utmp():
|
|||
result[os.stat(utmp).st_mtime] = utmp
|
||||
except Exception:
|
||||
pass
|
||||
if result > 0:
|
||||
if len(result):
|
||||
return result[sorted(result).pop()]
|
||||
else:
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue