Commit bbb43f3f authored by Gabriel Monnerat's avatar Gabriel Monnerat

Extend the method request() to be possible request a Slave Instance

parent df4cfe75
...@@ -150,7 +150,7 @@ class OpenOrder(SlapDocument): ...@@ -150,7 +150,7 @@ class OpenOrder(SlapDocument):
def request(self, software_release, partition_reference, def request(self, software_release, partition_reference,
partition_parameter_kw=None, software_type=None, filter_kw=None, partition_parameter_kw=None, software_type=None, filter_kw=None,
state=None): state=None, slave=False):
if partition_parameter_kw is None: if partition_parameter_kw is None:
partition_parameter_kw = {} partition_parameter_kw = {}
if filter_kw is None: if filter_kw is None:
...@@ -161,6 +161,7 @@ class OpenOrder(SlapDocument): ...@@ -161,6 +161,7 @@ class OpenOrder(SlapDocument):
'partition_parameter_xml': xml_marshaller.dumps(partition_parameter_kw), 'partition_parameter_xml': xml_marshaller.dumps(partition_parameter_kw),
'filter_xml': xml_marshaller.dumps(filter_kw), 'filter_xml': xml_marshaller.dumps(filter_kw),
'state': xml_marshaller.dumps(state), 'state': xml_marshaller.dumps(state),
'slave_xml': xml_marshaller.dumps(slave),
} }
if software_type is not None: if software_type is not None:
request_dict['software_type'] = software_type request_dict['software_type'] = software_type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment