Handle str in setter for test.

Signed-off-by: Kajetan Champlewski <contact@kajetan.ch>
This commit is contained in:
Kajetan Champlewski 2019-05-31 09:11:20 +00:00 committed by Djordje Lukic
parent c5ca2ef85e
commit 241aaaab23
1 changed files with 2 additions and 0 deletions

View File

@ -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