mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #48653 from terminalmage/docker-unboundlocal
docker_container.running: Fix regression in test mode
This commit is contained in:
commit
6a494205f2
1 changed files with 1 additions and 0 deletions
|
@ -1989,6 +1989,7 @@ def running(name,
|
|||
if __opts__['test']:
|
||||
ret['result'] = None
|
||||
comments.append('Container would be started')
|
||||
return _format_comments(ret, comments)
|
||||
else:
|
||||
try:
|
||||
post_state = __salt__['docker.start'](name)['state']['new']
|
||||
|
|
Loading…
Add table
Reference in a new issue