Commit 6dd55384 authored by Łukasz Nowak's avatar Łukasz Nowak

Revert "Fixup 89e09478"

This reverts commit 4871d896.
parent 4871d896
...@@ -838,14 +838,10 @@ class SlapTool(BaseTool): ...@@ -838,14 +838,10 @@ class SlapTool(BaseTool):
if requested_software_instance is None: if requested_software_instance is None:
raise SoftwareInstanceNotReady raise SoftwareInstanceNotReady
else: else:
requested_software_instance = portal.restrictedTraverse( if not requested_software_instance.getAggregate(portal_type="Computer Partition"):
requested_software_instance)
if not requested_software_instance.getAggregate(
portal_type="Computer Partition"):
raise SoftwareInstanceNotReady raise SoftwareInstanceNotReady
else: else:
parameter_dict = self._getSoftwareInstanceAsParameterDict( parameter_dict = self._getSoftwareInstanceAsParameterDict(requested_software_instance)
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