Permalink
Browse files

Automatically add eeagent slots to provisioner variables

  • Loading branch information...
1 parent 198f348 commit b1b74bab9425e4e55ef5f20c55cc12be00d82336 @oldpatricka oldpatricka committed Oct 12, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 epu/processdispatcher/matchmaker.py
@@ -144,6 +144,13 @@ def _get_domain_config(self, engine, initial_n=0):
engine_conf = config['engine_conf']
if engine_conf is None:
config['engine_conf'] = engine_conf = {}
+
+ if engine_conf.get('provisioner_vars') is None:
+ engine_conf['provisioner_vars'] = {}
+
+ if engine_conf['provisioner_vars'].get('slots') is None:
+ engine_conf['provisioner_vars']['slots'] = engine.slots
+
engine_conf['deployable_type'] = engine.deployable_type
engine_conf['preserve_n'] = initial_n
return config

0 comments on commit b1b74ba

Please sign in to comment.