Parse actions in cron also from list

This commit is contained in:
Fabio Manganiello 2020-11-11 17:09:32 +01:00
parent c7711d75a1
commit 470bd62af7
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Cronjob(Thread):
self.name = name
self.state = CronjobState.IDLE
if isinstance(actions, dict):
if isinstance(actions, dict) or isinstance(actions, list):
self.actions = Procedure.build(name=name + '__Cron', _async=False, requests=actions)
else:
self.actions = actions