From bedee4a2053251630b3a212207d6231fb7ad46ed Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Thu, 3 Sep 2009 10:03:41 +0000 Subject: [PATCH] bug fix: PLCAPI (e.g. DeletetPerson) delete an object and then call registry.remove, which again tries to remove the same object using PLCAPI call --- sfa/methods/remove.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sfa/methods/remove.py b/sfa/methods/remove.py index aabaadb6..673047ee 100644 --- a/sfa/methods/remove.py +++ b/sfa/methods/remove.py @@ -43,6 +43,7 @@ class remove(Method): type = record['type'] # TODO: sa, ma if type == "user": + if self.api.plshell.GetPersons(self.api.plauth, record.get_pointer()): self.api.plshell.DeletePerson(self.api.plauth, record.get_pointer()) elif type == "slice": self.api.plshell.DeleteSlice(self.api.plauth, record.get_pointer()) -- 2.43.0