formatted the 'db' script using vscode
[plcapi.git] / PLC / Methods / SliceUserDel.py
index e350a5f..9109b00 100644 (file)
@@ -11,11 +11,13 @@ class SliceUserDel(Method):
     Deprecated. Can be implemented with DeletePersonFromSlice.
 
     Removes the specified users from the specified slice. If the person is
-    already a member of the slice, no errors are returned. 
+    already a member of the slice, no errors are returned.
 
     Returns 1 if successful, faults otherwise.
     """
 
+    status = "deprecated"
+
     roles = ['admin', 'pi']
 
     accepts = [
@@ -26,10 +28,8 @@ class SliceUserDel(Method):
 
     returns = Parameter(int, '1 if successful')
 
-    object_type = 'Slice'
-
     def call(self, auth, slice_name, user_list):
-       for user in user_list:
-           DeletePersonFromSlice.call(self, auth, user, slice_name)
+        for user in user_list:
+            DeletePersonFromSlice.call(self, auth, user, slice_name)
 
         return 1