mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix docker.running detection of running container
This commit is contained in:
parent
89649456e0
commit
b69379ba50
1 changed files with 1 additions and 1 deletions
|
@ -1011,7 +1011,7 @@ def running(name,
|
|||
image_exists = iinfos['status']
|
||||
is_running = False
|
||||
if already_exists:
|
||||
is_running = __salt__['docker.is_running'](container)
|
||||
is_running = __salt__['docker.is_running'](name)
|
||||
# if container exists but is not started, try to start it
|
||||
if already_exists and (is_running or not start):
|
||||
return _valid(comment='container {0!r} already exists'.format(name))
|
||||
|
|
Loading…
Add table
Reference in a new issue