mirror of https://github.com/docker/docker-py.git
Handle str in setter for test.
Signed-off-by: Kajetan Champlewski <contact@kajetan.ch>
This commit is contained in:
parent
c5ca2ef85e
commit
241aaaab23
|
|
@ -53,6 +53,8 @@ class Healthcheck(DictType):
|
|||
|
||||
@test.setter
|
||||
def test(self, value):
|
||||
if isinstance(value, six.string_types):
|
||||
value = ["CMD-SHELL", value]
|
||||
self['Test'] = value
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Reference in New Issue