Compare commits

...

2 Commits

Author SHA1 Message Date
Robert Kaussow 87180e6f5e
fix: fix idempotency in docker_compose
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-05-16 16:47:26 +02:00
Robert Kaussow 3942150d2f
chore: add test requirements for docker compose module
continuous-integration/drone/push Build is passing Details
2021-05-16 16:11:33 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -786,7 +786,7 @@ class ContainerManager(DockerBaseClass):
) )
result["actions"].append(result_action) 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() out_redir_name, err_redir_name = make_redirection_tempfiles()
try: try:
with stdout_redirector(out_redir_name): with stdout_redirector(out_redir_name):
@ -800,8 +800,7 @@ class ContainerManager(DockerBaseClass):
do_build=do_build, do_build=do_build,
detached=detached, detached=detached,
remove_orphans=self.remove_orphans, remove_orphans=self.remove_orphans,
timeout=self.timeout, timeout=self.timeout
start=not self.stopped
) )
except Exception as exc: except Exception as exc:
fail_reason = get_failure_info( fail_reason = get_failure_info(

View File

@ -9,3 +9,6 @@ corenetworks
# requirement for the openssl_pkcs12 module # requirement for the openssl_pkcs12 module
pyOpenSSL pyOpenSSL
# requirement for the docker_compose module
docker-compose