Permalink
Browse files

Fix PD's Native backend not setting a default engine type

  • Loading branch information...
oldpatricka committed Sep 28, 2012
1 parent b231dc6 commit 18cfde3bd81d494ddf687591efcba1d769636ed0
Showing with 4 additions and 1 deletion.
  1. +4 −1 ion/services/cei/process_dispatcher_service.py
@@ -687,8 +687,11 @@ class PDNativeBackend(object):
def __init__(self, conf, service):
engine_conf = conf.get('engines', {})
+ default_engine = conf.get('default_engine')
+ if default_engine is None and len(engine_conf.keys()) == 1:
+ default_engine = engine_conf.keys()[0]
self.store = ProcessDispatcherStore()
- self.registry = EngineRegistry.from_config(engine_conf)
+ self.registry = EngineRegistry.from_config(engine_conf, default=default_engine)
# The Process Dispatcher communicates with EE Agents over ION messaging
# but it still uses dashi to talk to the EPU Management Service, until

0 comments on commit 18cfde3

Please sign in to comment.