Commit f4aee420 authored by Daniele Venzano's avatar Daniele Venzano

Manage Docker logs exception

parent e24f111d
...@@ -380,4 +380,8 @@ class SwarmClient: ...@@ -380,4 +380,8 @@ class SwarmClient:
:param follow: :param follow:
:return: :return:
""" """
return self.cli.logs(docker_id, stdout=True, stderr=True, follow=follow, stream=stream, timestamps=True) try:
return self.cli.logs(docker_id, stdout=True, stderr=True, follow=follow, stream=stream, timestamps=True)
except docker.errors.NullResource:
return None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment