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

View file

@ -27,7 +27,7 @@ class Cronjob(Thread):
self.name = name self.name = name
self.state = CronjobState.IDLE 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) self.actions = Procedure.build(name=name + '__Cron', _async=False, requests=actions)
else: else:
self.actions = actions self.actions = actions