From: Anil-Kumar Vengalil Date: Thu, 9 Jul 2009 17:16:26 +0000 (+0000) Subject: more verbose on previous commit X-Git-Tag: sfa-0.9-0@14641~91 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=769c8eaded6f8e09fc1402967849c6feb50779f2;p=sfa.git more verbose on previous commit --- diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index 20d88a45..59e8c559 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -187,6 +187,11 @@ class Slices(SimpleStorage): # Create the person record if not persons: person_id=self.api.plshell.AddPerson(self.api.plauth, person_dict) + + # The line below enables the user account on the remote aggregate soon after it is created. + # without this the user key is not transfered to the slice (as GetSlivers returns key of only enabled users), + # which prevents the user from login to the slice. We may do additional checks before enabling the user. + self.api.plshell.UpdatePerson(self.api.plauth, person_id, {'enabled' : True}) key_ids = [] else: