mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #29715 from rallytime/fix-23343
Install correct package version, if provided, for npm state.
This commit is contained in:
commit
c393a4175a
1 changed files with 1 additions and 5 deletions
|
@ -186,13 +186,9 @@ def installed(name,
|
|||
'runas': user,
|
||||
'registry': registry,
|
||||
'env': env,
|
||||
'pkgs': pkg_list,
|
||||
}
|
||||
|
||||
if pkgs is not None:
|
||||
cmd_args['pkgs'] = pkgs
|
||||
else:
|
||||
cmd_args['pkg'] = pkg_name
|
||||
|
||||
call = __salt__['npm.install'](**cmd_args)
|
||||
except (CommandNotFoundError, CommandExecutionError) as err:
|
||||
ret['result'] = False
|
||||
|
|
Loading…
Add table
Reference in a new issue