Merge pull request #48653 from terminalmage/docker-unboundlocal

docker_container.running: Fix regression in test mode
This commit is contained in:
Nicole Thomas 2018-07-20 15:15:46 -04:00 committed by GitHub
commit 6a494205f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']