Merge pull request #40182 from terminalmage/dockerng-mod_watch-stopped

Add support for "stopped" state to dockerng's mod_watch
This commit is contained in:
Mike Place 2017-03-21 09:40:28 -06:00 committed by GitHub
commit d4e6c58526

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