diff --git a/master/product/Vifib/Tool/SlapTool.py b/master/product/Vifib/Tool/SlapTool.py index a5c2f9960e375836fb7be13906bd5580e4dd4f09..6ab9ee3b946dc23479ca41b9c8fae0ef05c7ee1d 100644 --- a/master/product/Vifib/Tool/SlapTool.py +++ b/master/product/Vifib/Tool/SlapTool.py @@ -578,6 +578,8 @@ class SlapTool(BaseTool): 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: state = 'started' if shared_xml: diff --git a/slapos/slap/slap.py b/slapos/slap/slap.py index 84bdc7481383222e5839ae35eafbbf52399283e0..cdf8ae5e83e999a95746fd9527ecde2aaf3d45e6 100644 --- a/slapos/slap/slap.py +++ b/slapos/slap/slap.py @@ -307,7 +307,7 @@ class ComputerPartition(SlapDocument): 'partition_parameter_xml': xml_marshaller.dumps( partition_parameter_kw), 'filter_xml': xml_marshaller.dumps(filter_kw), - 'state': state, + 'state': xml_marshaller.dumps(state), } self._connection_helper.POST('/requestComputerPartition', request_dict) xml = self._connection_helper.response.read()