Unless person account is enabled, the GetSlivers does not return the user key to...
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 9 Jul 2009 13:14:24 +0000 (13:14 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 9 Jul 2009 13:14:24 +0000 (13:14 +0000)
sfa/plc/slices.py

index bb41d78..20d88a4 100644 (file)
@@ -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']