mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
only look at stdout when doing pip --version
This commit is contained in:
parent
56363bc41c
commit
9f1321d1a7
@ -1101,7 +1101,7 @@ def version(bin_env=None):
|
||||
'''
|
||||
pip_bin = _get_pip_bin(bin_env)
|
||||
|
||||
output = __salt__['cmd.run'](
|
||||
output = __salt__['cmd.run_stdout'](
|
||||
'{0} --version'.format(pip_bin), python_shell=False)
|
||||
try:
|
||||
return re.match(r'^pip (\S+)', output).group(1)
|
||||
|
Loading…
Reference in New Issue
Block a user