to be sure that the record being removed is a peer record
[sfa.git] / 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)