diff options
| author | Joffrey F <joffrey@docker.com> | 2015-11-11 13:34:18 -0800 |
|---|---|---|
| committer | Joffrey F <joffrey@docker.com> | 2015-11-12 10:50:01 -0800 |
| commit | 0e13a0d7fd82f378484c80b94ad4e050839a2c4e (patch) | |
| tree | d4c06c850c662d49ef91c9438d025fb56043d8dd /docker/api/container.py | |
| parent | cefad9e23b4c8eb3e64b7ca35c0448b6bc2eb9a4 (diff) | |
| download | docker-py-0e13a0d7fd82f378484c80b94ad4e050839a2c4e.tar.gz | |
Client.logs(tail=0) now shows no past logs (expected behavior)
Add test confirming the new behavior.
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/api/container.py')
| -rw-r--r-- | docker/api/container.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/api/container.py b/docker/api/container.py index 142bd0f..f3f85e8 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -192,7 +192,7 @@ class ContainerApiMixin(object): 'follow': stream and 1 or 0, } if utils.compare_version('1.13', self._version) >= 0: - if tail != 'all' and (not isinstance(tail, int) or tail <= 0): + if tail != 'all' and (not isinstance(tail, int) or tail < 0): tail = 'all' params['tail'] = tail url = self._url("/containers/{0}/logs", container) |
