diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2015-11-10 16:19:48 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2015-11-18 07:46:29 +0000 |
commit | 7e594ded69f895fd92ddffe7691ae3a84f86a1a9 (patch) | |
tree | 26de82a61cae4694f0e399e9f0d3ecd509227e81 /taskflow/conductors | |
parent | cd922d4e466f27a470208ceba4beb8c1f4da2db3 (diff) | |
download | taskflow-7e594ded69f895fd92ddffe7691ae3a84f86a1a9.tar.gz |
Use the misc.ensure_dict helper in conductor engine options saving
Change-Id: I7d796f4ca4b59a22fdae417f1483b3778d3070d0
Diffstat (limited to 'taskflow/conductors')
-rw-r--r-- | taskflow/conductors/base.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/taskflow/conductors/base.py b/taskflow/conductors/base.py index 750d8cf..694b213 100644 --- a/taskflow/conductors/base.py +++ b/taskflow/conductors/base.py @@ -46,10 +46,7 @@ class Conductor(object): self._name = name self._jobboard = jobboard self._engine = engine - if not engine_options: - self._engine_options = {} - else: - self._engine_options = engine_options.copy() + self._engine_options = misc.ensure_dict(engine_options) self._persistence = persistence self._lock = threading.RLock() self._notifier = notifier.Notifier() |