git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merge from trunk
[plcapi.git]
/
PLC
/
Methods
/
GetPCUs.py
diff --git
a/PLC/Methods/GetPCUs.py
b/PLC/Methods/GetPCUs.py
index
3280070
..
ee9ab4d
100644
(file)
--- a/
PLC/Methods/GetPCUs.py
+++ b/
PLC/Methods/GetPCUs.py
@@
-67,6
+67,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