X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fplanetlab%2Fplslices.py;h=decb54646cf374aa187243a29ef8c16d86e29ebf;hb=3a453109b0b85e0f1ad1cf7c1743ddd6828d6385;hp=197ffcab76bf132657e672c02a93923d715d5b17;hpb=bb27511cfa75af5e9c6b7874800eb2b47fd27706;p=sfa.git diff --git a/sfa/planetlab/plslices.py b/sfa/planetlab/plslices.py index 197ffcab..decb5464 100644 --- a/sfa/planetlab/plslices.py +++ b/sfa/planetlab/plslices.py @@ -422,6 +422,8 @@ class PlSlices: # the value to use if 'user' has no 'email' attached - or if the attached email already exists # typically ( auth_hrn, _ , leaf ) = user_hrn.rpartition('.') + # somehow this has backslashes, get rid of them + auth_hrn = auth_hrn.replace('\\','') default_email = "%s@%s.stub"%(leaf,auth_hrn) person_record = { @@ -443,6 +445,7 @@ class PlSlices: # so we first try with the accurate email person_id = int (self.driver.shell.AddPerson(person_record)) except: + logger.log_exc("caught during first attempt at AddPerson") # and if that fails we start again with the email based on the hrn, which this time is unique.. person_record['email']=default_email logger.debug ("second chance with email=%s"%person_record['email'])