mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Salt State pkg.installed enforce package versions
This commit is contained in:
parent
c403239243
commit
acd949c6db
@ -40,9 +40,7 @@ def installed(
|
||||
sources=None,
|
||||
**kwargs):
|
||||
'''
|
||||
Verify that the package is installed, and only that it is installed. This
|
||||
state will not upgrade an existing package and only verify that it is
|
||||
installed
|
||||
Verify that the package is installed, and that it is the correct version.
|
||||
|
||||
name
|
||||
The name of the package to be installed. This parameter is ignored if
|
||||
@ -146,12 +144,6 @@ def installed(
|
||||
'result': True,
|
||||
'comment': ('Package {0} is already installed and is the '
|
||||
'correct version').format(name)}
|
||||
elif cver:
|
||||
# The package is installed
|
||||
return {'name': name,
|
||||
'changes': {},
|
||||
'result': True,
|
||||
'comment': 'Package {0} is already installed'.format(name)}
|
||||
|
||||
if __opts__['test']:
|
||||
if len(targets) > 1:
|
||||
|
Loading…
Reference in New Issue
Block a user