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