Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Robert Kaussow | 87180e6f5e | |
Robert Kaussow | 3942150d2f |
|
@ -786,7 +786,7 @@ class ContainerManager(DockerBaseClass):
|
|||
)
|
||||
result["actions"].append(result_action)
|
||||
|
||||
if not self.check_mode and result["changed"]:
|
||||
if not self.check_mode and result["changed"] and not self.stopped:
|
||||
out_redir_name, err_redir_name = make_redirection_tempfiles()
|
||||
try:
|
||||
with stdout_redirector(out_redir_name):
|
||||
|
@ -800,8 +800,7 @@ class ContainerManager(DockerBaseClass):
|
|||
do_build=do_build,
|
||||
detached=detached,
|
||||
remove_orphans=self.remove_orphans,
|
||||
timeout=self.timeout,
|
||||
start=not self.stopped
|
||||
timeout=self.timeout
|
||||
)
|
||||
except Exception as exc:
|
||||
fail_reason = get_failure_info(
|
||||
|
|
|
@ -9,3 +9,6 @@ corenetworks
|
|||
|
||||
# requirement for the openssl_pkcs12 module
|
||||
pyOpenSSL
|
||||
|
||||
# requirement for the docker_compose module
|
||||
docker-compose
|
||||
|
|
Loading…
Reference in New Issue