svn keywords
[plcapi.git] / PLC / Methods / GetPCUs.py
index 3280070..aee8f4a 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -67,6 +69,7 @@ class GetPCUs(Method):
         # Remove pcu_id if not specified
         if added_fields:
             for pcu in pcus:
-                del pcu['pcu_id']
+               if 'pcu_id' in pcu:
+                   del pcu['pcu_id']
 
         return pcus