mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
adding version number to changes dict return
This commit is contained in:
parent
8d725ab508
commit
3f641809cf
@ -83,8 +83,11 @@ def installed(name,
|
||||
no_install=no_install,
|
||||
no_download=no_download,
|
||||
install_options=install_options):
|
||||
pkg_list = __salt__['pip.list'](name, bin_env)
|
||||
version = pkg_list.values()[0]
|
||||
pkg_name = pkg_list.keys()[0]
|
||||
ret['result'] = True
|
||||
ret['changes'][name] = 'Installed'
|
||||
ret['changes']["{0}=={1}".format(pkg_name, version)] = 'Installed'
|
||||
ret['comment'] = 'Package was successfully installed'
|
||||
else:
|
||||
ret['result'] = False
|
||||
|
Loading…
Reference in New Issue
Block a user