Commit d7644474 authored by Łukasz Nowak's avatar Łukasz Nowak

Marshall/unmarshall parameter.

It is required in order to pass values like None.
parent 1f6a3958
...@@ -578,6 +578,8 @@ class SlapTool(BaseTool): ...@@ -578,6 +578,8 @@ class SlapTool(BaseTool):
In any other case returns not important data and HTTP code is 403 Forbidden In any other case returns not important data and HTTP code is 403 Forbidden
""" """
if state:
state = xml_marshaller.xml_marshaller.loads(state)
if state is None: if state is None:
state = 'started' state = 'started'
if shared_xml: if shared_xml:
......
...@@ -307,7 +307,7 @@ class ComputerPartition(SlapDocument): ...@@ -307,7 +307,7 @@ class ComputerPartition(SlapDocument):
'partition_parameter_xml': xml_marshaller.dumps( 'partition_parameter_xml': xml_marshaller.dumps(
partition_parameter_kw), partition_parameter_kw),
'filter_xml': xml_marshaller.dumps(filter_kw), 'filter_xml': xml_marshaller.dumps(filter_kw),
'state': state, 'state': xml_marshaller.dumps(state),
} }
self._connection_helper.POST('/requestComputerPartition', request_dict) self._connection_helper.POST('/requestComputerPartition', request_dict)
xml = self._connection_helper.response.read() xml = self._connection_helper.response.read()
......
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