Commit 4871d896 authored by Łukasz Nowak's avatar Łukasz Nowak

Fixup 89e09478

parent a2ba4b40
...@@ -838,10 +838,14 @@ class SlapTool(BaseTool): ...@@ -838,10 +838,14 @@ class SlapTool(BaseTool):
if requested_software_instance is None: if requested_software_instance is None:
raise SoftwareInstanceNotReady raise SoftwareInstanceNotReady
else: else:
if not requested_software_instance.getAggregate(portal_type="Computer Partition"): requested_software_instance = portal.restrictedTraverse(
requested_software_instance)
if not requested_software_instance.getAggregate(
portal_type="Computer Partition"):
raise SoftwareInstanceNotReady raise SoftwareInstanceNotReady
else: else:
parameter_dict = self._getSoftwareInstanceAsParameterDict(requested_software_instance) parameter_dict = self._getSoftwareInstanceAsParameterDict(
requested_software_instance)
software_instance = SoftwareInstance(**parameter_dict) software_instance = SoftwareInstance(**parameter_dict)
return xml_marshaller.xml_marshaller.dumps(software_instance) return xml_marshaller.xml_marshaller.dumps(software_instance)
......
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