Skip to content

Commit

Permalink
Merge pull request #40182 from terminalmage/dockerng-mod_watch-stopped
Browse files Browse the repository at this point in the history
Add support for "stopped" state to dockerng's mod_watch
  • Loading branch information
Mike Place committed Mar 21, 2017
2 parents a0b4082 + 4629a26 commit d4e6c58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/states/dockerng.py
Expand Up @@ -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
Expand Down

0 comments on commit d4e6c58

Please sign in to comment.