X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FUpdatePCU.py;h=1c915acde4e65894884025e0b2f23147082fffb4;hb=2cff66789332935b816d21e4bf433b83218635df;hp=99415f2253b981551698bdc0de43e96e350fdd4e;hpb=a37a6d2be8acf14bd2b133f1db24fe4b8367908c;p=plcapi.git diff --git a/PLC/Methods/UpdatePCU.py b/PLC/Methods/UpdatePCU.py index 99415f2..1c915ac 100644 --- a/PLC/Methods/UpdatePCU.py +++ b/PLC/Methods/UpdatePCU.py @@ -44,6 +44,9 @@ class UpdatePCU(Method): pcu.update(pcu_fields) pcu.sync() + + # Logging variables self.object_ids = [pcu['pcu_id']] - + self.message = 'PCU %d updated: %s' % \ + (pcu['pcu_id'], ", ".join(pcu_fields.keys())) return 1