From: Anil-Kumar Vengalil Date: Thu, 3 Sep 2009 10:03:41 +0000 (+0000) Subject: bug fix: PLCAPI (e.g. DeletetPerson) delete an object and then call registry.remove... X-Git-Tag: sfa-0.9-1~31 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bedee4a2053251630b3a212207d6231fb7ad46ed;p=sfa.git 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 --- 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())