From: Thierry Parmentelat Date: Mon, 14 Oct 2024 14:03:25 +0000 (+0200) Subject: the DeleteSlice method was failing to create events as the message attribute was... X-Git-Tag: plcapi-7.2-4~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=baf14559e3bb9a5ee36fc5d995a93c086b194cf3;p=plcapi.git the DeleteSlice method was failing to create events as the message attribute was not set --- diff --git a/PLC/Methods/DeleteSlice.py b/PLC/Methods/DeleteSlice.py index 49df6ea0..f8bf332c 100644 --- a/PLC/Methods/DeleteSlice.py +++ b/PLC/Methods/DeleteSlice.py @@ -43,6 +43,8 @@ class DeleteSlice(Method): raise PLCPermissionDenied("Specified slice not associated with any of your sites") slice.delete() + self.event_objects = {'Slice': [slice['slice_id']]} + self.message = "Slice %d deleted" % slice['slice_id'] return 1