Merge pull request #30259 from kiorky/patch3

add removed/purged to supported functions
This commit is contained in:
Erik Johnson 2016-01-12 13:32:59 -06:00
commit 5a716d09a4

View File

@ -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,