Skip to content

Commit

Permalink
Add support for "stopped" state to dockerng's mod_watch
Browse files Browse the repository at this point in the history
  • Loading branch information
terminalmage committed Mar 21, 2017
1 parent a0b4082 commit 4629a26
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 4629a26

Please sign in to comment.