From 2e1daee2a776ab85304900653ecaf754f2e91fa4 Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Mon, 10 Aug 2009 20:44:04 +0000 Subject: [PATCH] unbinding the foreign person before adding key --- sfa/plc/slices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index 003cd1fc..8c6ddeb7 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -275,7 +275,7 @@ class Slices(SimpleStorage): if personkey not in keys: key = {'key_type': 'ssh', 'key': personkey} if peer: - self.api.plshell.BindObjectToPeer(self.api.plauth, 'person', person_id, peer, person_record['pointer']) + self.api.plshell.UnBindObjectFromPeer(self.api.plauth, 'person', person_id, peer, person_record['pointer']) self.api.plshell.AddPersonKey(self.api.plauth, person_dict['email'], key) if peer: self.api.plshell.BindObjectToPeer(self.api.plauth, 'person', person_id, peer, person_record['pointer']) -- 2.43.0