Commit a25e830a authored by Gabriel Monnerat's avatar Gabriel Monnerat

add Slave Instance to be possible find this object in a packing list line

parent 92b3a4ac
...@@ -729,8 +729,9 @@ class SlapTool(BaseTool): ...@@ -729,8 +729,9 @@ class SlapTool(BaseTool):
raise NotFound, "No software instance found for: %s - %s" % (computer_id, raise NotFound, "No software instance found for: %s - %s" % (computer_id,
computer_partition_id) computer_partition_id)
else: else:
portal_type_list = ["Software Instance", "Slave Instance"]
software_instance = packing_list_line.getAggregateValue( software_instance = packing_list_line.getAggregateValue(
portal_type="Software Instance") portal_type=portal_type_list)
if software_instance is None: if software_instance is None:
raise NotFound, "No software instance found for: %s - %s" % ( raise NotFound, "No software instance found for: %s - %s" % (
computer_id, computer_partition_id) computer_id, computer_partition_id)
......
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