mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #36562 from kiorky/s2015.8
Fix pkg.latest_version using localized output
This commit is contained in:
commit
9b9e167b47
1 changed files with 2 additions and 1 deletions
|
@ -261,7 +261,8 @@ def latest_version(*names, **kwargs):
|
|||
if isinstance(repo, list):
|
||||
cmd = cmd + repo
|
||||
out = __salt__['cmd.run_all'](cmd, python_shell=False,
|
||||
output_loglevel='trace')
|
||||
output_loglevel='trace',
|
||||
env={'LC_ALL': 'C', 'LANG': 'C'})
|
||||
candidate = ''
|
||||
for line in out['stdout'].splitlines():
|
||||
if 'Candidate' in line:
|
||||
|
|
Loading…
Add table
Reference in a new issue