From a25e830a53ca4ad3d666a0889b16e5d19c2be5a6 Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Thu, 7 Jul 2011 18:42:04 -0300
Subject: [PATCH] add Slave Instance to be possible find this object in a
 packing list line

---
 master/product/Vifib/Tool/SlapTool.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/master/product/Vifib/Tool/SlapTool.py b/master/product/Vifib/Tool/SlapTool.py
index e773cc7c4..6edffb186 100644
--- a/master/product/Vifib/Tool/SlapTool.py
+++ b/master/product/Vifib/Tool/SlapTool.py
@@ -729,8 +729,9 @@ class SlapTool(BaseTool):
       raise NotFound, "No software instance found for: %s - %s" % (computer_id,
           computer_partition_id)
     else:
+      portal_type_list = ["Software Instance", "Slave Instance"]
       software_instance = packing_list_line.getAggregateValue(
-                                              portal_type="Software Instance")
+                                              portal_type=portal_type_list)
       if software_instance is None:
         raise NotFound, "No software instance found for: %s - %s" % (
           computer_id, computer_partition_id)
-- 
2.30.9