mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Revert "not not" deletion and add comment as to why that is there
This commit is contained in:
parent
9ab4d6164b
commit
86196cd59d
1 changed files with 2 additions and 1 deletions
|
@ -326,7 +326,8 @@ def upgrade_available(name):
|
|||
|
||||
salt '*' pkg.upgrade_available <package name>
|
||||
'''
|
||||
return latest_version(name)
|
||||
# The "not not" tactic is intended here as it forces the return to be False.
|
||||
return not not latest_version(name) # pylint: disable=C0113
|
||||
|
||||
|
||||
def version(*names, **kwargs):
|
||||
|
|
Loading…
Add table
Reference in a new issue