Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add add_engine

  • Loading branch information...
commit 503c88d107f09fcaf95dbef6b56cf515c9714a15 1 parent 8afb473
@oldpatricka oldpatricka authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 ceiclient/client.py
View
6 ceiclient/client.py
@@ -332,6 +332,12 @@ class PDClient(DashiCeiClient):
def set_system_boot(self, system_boot):
self.connection.call(self.dashi_name, 'set_system_boot', system_boot=system_boot)
+ 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)
+
def create_process_definition(self, process_definition=None, process_definition_id=None):
if process_definition is None:
raise CeiClientError("You must provide a process defintion")
Please sign in to comment.
Something went wrong with that request. Please try again.