Add support for "stopped" state to dockerng's mod_watch

This commit is contained in:
Erik Johnson 2017-03-21 09:02:31 -05:00
parent a0b4082484
commit 4629a26fb7

View File

@ -2428,6 +2428,9 @@ def mod_watch(name, sfun=None, **kwargs):
watch_kwargs['force'] = False
return running(name, **watch_kwargs)
if sfun == 'stopped':
return stopped(name, **salt.utils.clean_kwargs(**kwargs))
if sfun == 'image_present':
# Force image to be updated
kwargs['force'] = True