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
parent a208de9e5b
commit 7302d1af04
No known key found for this signature in database
GPG Key ID: FCF0778F5E531544
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