to be sure that the record being removed is a peer record
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Sun, 4 Oct 2009 14:10:24 +0000 (14:10 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Sun, 4 Oct 2009 14:10:24 +0000 (14:10 +0000)
sfa/methods/remove_peer_object.py

index 625450d..f3ea1e7 100644 (file)
@@ -47,6 +47,7 @@ class remove_peer_object(Method):
         hrn, type = record['hrn'], record['type']
         records = table.find({'hrn': hrn, 'type': type })
         for record in records:
+         if record['peer_authority']:
             self.remove_plc_record(record)
             table.remove(record)