mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make result=true if Docker volume already exists
In other states the result is always returned as `True` if no change is required, whether `test=True` is set or not. Fixes #42076
This commit is contained in:
parent
ca4e619edb
commit
8d549685a7
1 changed files with 1 additions and 1 deletions
|
@ -2442,7 +2442,7 @@ def volume_present(name, driver=None, driver_opts=None, force=False):
|
|||
ret['result'] = result
|
||||
return ret
|
||||
|
||||
ret['result'] = None if __opts__['test'] else True
|
||||
ret['result'] = True
|
||||
ret['comment'] = 'Volume \'{0}\' already exists.'.format(name)
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue