From: Anil-Kumar Vengalil Date: Thu, 9 Jul 2009 13:14:24 +0000 (+0000) Subject: Unless person account is enabled, the GetSlivers does not return the user key to... X-Git-Tag: sfa-0.9-0@14641~94 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=24b8f37d9edcd59229a5a58ff36d36c5807ae937;p=sfa.git Unless person account is enabled, the GetSlivers does not return the user key to the node --- diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index bb41d78d..20d88a45 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -186,7 +186,8 @@ class Slices(SimpleStorage): # Create the person record if not persons: - self.api.plshell.AddPerson(self.api.plauth, person_dict) + person_id=self.api.plshell.AddPerson(self.api.plauth, person_dict) + self.api.plshell.UpdatePerson(self.api.plauth, person_id, {'enabled' : True}) key_ids = [] else: key_ids = persons[0]['key_ids']