--- /usr/sbin/3ware-status	2007-10-10 10:55:54.000000000 +0200
+++ /tmp/3ware-status	2010-03-23 14:05:25.000000000 +0100
@@ -36,7 +36,11 @@
     lines = []
     for line in output:
         if re.match(r'^[p][0-9]+\s.*$',line.strip()):
-            lines.append(line.split())
+            # Shoudl contain something like 'u0'
+            # '-' means the drive doesn't belong to any array
+            # If is NOT PRESENT too, it just means this is an empty port
+            if not line.split()[2].strip() == '-' and not line.split()[1].strip() == 'NOT-PRESENT':
+                lines.append(line.split())
     if fake_failure:
         lines[0][1] = 'NOT PRESENT'
     return lines

