mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add support for "stopped" state to dockerng's mod_watch
This commit is contained in:
parent
a0b4082484
commit
4629a26fb7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user