the DeleteSlice method was failing to create events as the message attribute was...
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 14 Oct 2024 14:03:25 +0000 (16:03 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 14 Oct 2024 14:03:25 +0000 (16:03 +0200)
PLC/Methods/DeleteSlice.py

index 49df6ea..f8bf332 100644 (file)
@@ -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