mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28330 from rallytime/bp-28305
Back-port #28305 to 2015.8
This commit is contained in:
commit
64d5c2362a
1 changed files with 3 additions and 1 deletions
|
@ -84,10 +84,11 @@ def installed(name,
|
|||
ret = {'name': name, 'result': None, 'comment': '', 'changes': {}}
|
||||
|
||||
try:
|
||||
call = __salt__['cabal.update']()
|
||||
call = __salt__['cabal.update'](user=user, env=env)
|
||||
except (CommandNotFoundError, CommandExecutionError) as err:
|
||||
ret['result'] = False
|
||||
ret['comment'] = 'Could not run cabal update {0}'.format(err)
|
||||
return ret
|
||||
|
||||
if pkgs is not None:
|
||||
pkg_list = pkgs
|
||||
|
@ -100,6 +101,7 @@ def installed(name,
|
|||
except (CommandNotFoundError, CommandExecutionError) as err:
|
||||
ret['result'] = False
|
||||
ret['comment'] = 'Error looking up {0!r}: {1}'.format(name, err)
|
||||
return ret
|
||||
|
||||
pkgs_satisfied = []
|
||||
pkgs_to_install = []
|
||||
|
|
Loading…
Add table
Reference in a new issue