Permalink
Browse files

Add add_engine command to PD

  • Loading branch information...
1 parent 8afb473 commit 494dcb3908b48632e9e9ecc2a3fb4dc73269dc3c @oldpatricka oldpatricka committed Nov 13, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 ceiclient/client.py
View
@@ -411,6 +411,12 @@ def restart_process(self, upid):
def dump(self):
return self.connection.call(self.dashi_name, 'dump')
+ def add_engine(self, engine_id, slots, **kwargs):
+ definition = dict(engine_id=engine_id, slots=slots)
+ for key, val in kwargs.iteritems():
+ definition[key] = val
+ return self.connection.call(self.dashi_name, 'add_engine', definition=definition)
+
class HAAgentClient(DashiCeiClient):

0 comments on commit 494dcb3

Please sign in to comment.