X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteSliceAttributeType.py;h=e6c1a8a77b2ce561ee5d795e92d5c500222ea828;hb=b3c3e1029ce254558c7135ef114f72c986093aad;hp=db7816aa5c10bf3146e87a52c834e1babffb0424;hpb=e347fc823bbba9d88a3fddf07d5c21024dfd1e55;p=plcapi.git diff --git a/PLC/Methods/DeleteSliceAttributeType.py b/PLC/Methods/DeleteSliceAttributeType.py index db7816a..e6c1a8a 100644 --- a/PLC/Methods/DeleteSliceAttributeType.py +++ b/PLC/Methods/DeleteSliceAttributeType.py @@ -21,6 +21,7 @@ class DeleteSliceAttributeType(Method): returns = Parameter(int, '1 if successful') + def call(self, auth, attribute_type_id_or_name): attribute_types = SliceAttributeTypes(self.api, [attribute_type_id_or_name]) if not attribute_types: @@ -28,5 +29,6 @@ class DeleteSliceAttributeType(Method): attribute_type = attribute_types[0] attribute_type.delete() + self.event_objects = {'AttributeType': [attribute_type['attribute_type_id']]} return 1