mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #30259 from kiorky/patch3
add removed/purged to supported functions
This commit is contained in:
commit
5a716d09a4
@ -2176,7 +2176,11 @@ def mod_watch(name, **kwargs):
|
||||
Install/reinstall a package based on a watch requisite
|
||||
'''
|
||||
sfun = kwargs.pop('sfun', None)
|
||||
mapfun = {'latest': latest, 'wait': installed, 'installed': installed}
|
||||
mapfun = {'purged': purged,
|
||||
'latest': latest,
|
||||
'removed': removed,
|
||||
'wait': installed,
|
||||
'installed': installed}
|
||||
if sfun in mapfun:
|
||||
return mapfun[sfun](name, **kwargs)
|
||||
return {'name': name,
|
||||
|
Loading…
Reference in New Issue
Block a user