From: Mohamed Larabi Date: Thu, 5 Dec 2013 10:54:22 +0000 (+0100) Subject: pl: set new person HRN after adding it to the site X-Git-Tag: sfa-3.1-1~2 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=4d34640b6565cda80e1e872c9e00ef071d7a1470 pl: set new person HRN after adding it to the site --- diff --git a/sfa/planetlab/plslices.py b/sfa/planetlab/plslices.py index 9455a205..5e106cdc 100644 --- a/sfa/planetlab/plslices.py +++ b/sfa/planetlab/plslices.py @@ -458,10 +458,10 @@ class PlSlices: self.driver.shell.AddRoleToPerson('user', int(person_id)) # enable the account self.driver.shell.UpdatePerson(int(person_id), {'enabled': True}) - self.driver.shell.SetPersonHrn(int(person_id), person_hrn) self.driver.shell.SetPersonSfaCreated(int(person_id), 'True') self.driver.shell.AddPersonToSite(int(person_id), site['site_id']) self.driver.shell.AddPersonToSlice(int(person_id), slice['slice_id']) + self.driver.shell.SetPersonHrn(int(person_id), person_hrn) # Add keys for key in users_by_hrn[person_hrn].get('keys', []):