mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #27747 from Sacro/fix-chocolatey-version
Chocolatey doesn't have a help command.
This commit is contained in:
commit
a130896d1c
@ -102,7 +102,7 @@ def chocolatey_version():
|
||||
'''
|
||||
if 'chocolatey._version' in __context__:
|
||||
return __context__['chocolatey._version']
|
||||
cmd = [_find_chocolatey(__context__, __salt__), 'help']
|
||||
cmd = [_find_chocolatey(__context__, __salt__)]
|
||||
out = __salt__['cmd.run'](cmd, python_shell=False)
|
||||
for line in out.splitlines():
|
||||
line = line.lower()
|
||||
|
Loading…
Reference in New Issue
Block a user