mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lint: cur_version should just be pip_version
This commit is contained in:
parent
5565d5e9b1
commit
75480158b3
1 changed files with 1 additions and 2 deletions
|
@ -1258,8 +1258,7 @@ def list_upgrades(bin_env=None,
|
|||
|
||||
# If pip >= 9.0 use --format=json
|
||||
min_version = '9.0'
|
||||
cur_version = version(pip_bin)
|
||||
if salt.utils.versions.compare(ver1=cur_version,
|
||||
if salt.utils.versions.compare(ver1=pip_version,
|
||||
oper='>=',
|
||||
ver2=min_version):
|
||||
cmd.append('--format=json')
|
||||
|
|
Loading…
Add table
Reference in a new issue