Skip to content

Commit 1308cfb

Browse files
authored
Merge pull request #2365 from docker/4.0.2-release
4.0.2 release
2 parents ead0bb9 + 805f5f4 commit 1308cfb

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

docker/api/secret.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def inspect_secret(self, id):
5353
Retrieve secret metadata
5454
5555
Args:
56-
id (string): Full ID of the secret to remove
56+
id (string): Full ID of the secret to inspect
5757
5858
Returns (dict): A dictionary of metadata
5959

docker/types/healthcheck.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Healthcheck(DictType):
1414
- Empty list: Inherit healthcheck from parent image
1515
- ``["NONE"]``: Disable healthcheck
1616
- ``["CMD", args...]``: exec arguments directly.
17-
- ``["CMD-SHELL", command]``: RUn command in the system's
17+
- ``["CMD-SHELL", command]``: Run command in the system's
1818
default shell.
1919
2020
If a string is provided, it will be used as a ``CMD-SHELL``
@@ -23,9 +23,9 @@ class Healthcheck(DictType):
2323
should be 0 or at least 1000000 (1 ms).
2424
timeout (int): The time to wait before considering the check to
2525
have hung. It should be 0 or at least 1000000 (1 ms).
26-
retries (integer): The number of consecutive failures needed to
26+
retries (int): The number of consecutive failures needed to
2727
consider a container as unhealthy.
28-
start_period (integer): Start period for the container to
28+
start_period (int): Start period for the container to
2929
initialize before starting health-retries countdown in
3030
nanoseconds. It should be 0 or at least 1000000 (1 ms).
3131
"""
@@ -53,6 +53,8 @@ def test(self):
5353

5454
@test.setter
5555
def test(self, value):
56+
if isinstance(value, six.string_types):
57+
value = ["CMD-SHELL", value]
5658
self['Test'] = value
5759

5860
@property

docker/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "4.0.1"
1+
version = "4.0.2"
22
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])

docs/change-log.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Change log
22
==========
33

4+
4.0.2
5+
-----
6+
7+
[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/62?closed=1)
8+
9+
### Bugfixes
10+
11+
- Unified the way `HealthCheck` is created/configured
12+
13+
### Miscellaneous
14+
15+
- Bumped version of websocket-client
16+
17+
418
4.0.1
519
-----
620

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ pypiwin32==223; sys_platform == 'win32' and python_version >= '3.6'
1616
requests==2.20.0
1717
six==1.10.0
1818
urllib3==1.24.3
19-
websocket-client==0.40.0
19+
websocket-client==0.56.0

0 commit comments

Comments
 (0)