Skip to content

Commit 241aaaa

Browse files
mildlyincompetentrumpl
authored andcommitted
Handle str in setter for test.
Signed-off-by: Kajetan Champlewski <[email protected]>
1 parent c5ca2ef commit 241aaaa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/types/healthcheck.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)