mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
d4e6c58526
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue