X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fplanetlab%2Fplslices.py;h=68681ca208d2f2494c45f30b44e86cda8879e07a;hb=8db6a89b0ccd32462875e45b57fec793279ed455;hp=f1e88bc9ba2f5c0c9d8fa961d6762703aad7aaff;hpb=d5fb176cccd963d23446b4f4442004f0ec5fa0e6;p=sfa.git diff --git a/sfa/planetlab/plslices.py b/sfa/planetlab/plslices.py index f1e88bc9..68681ca2 100644 --- a/sfa/planetlab/plslices.py +++ b/sfa/planetlab/plslices.py @@ -448,7 +448,7 @@ class PlSlices: 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 + person_record['email'] = default_email logger.debug ("second chance with email={}".format(person_record['email'])) person_id = int (self.driver.shell.AddPerson(person_record)) self.driver.shell.AddRoleToPerson('user', person_id) @@ -609,7 +609,7 @@ class PlSlices: for existing_attribute in existing_slice_tags: if requested_attribute['name'] == existing_attribute['tagname'] and \ requested_attribute['value'] == existing_attribute['value']: - tag_found=True + tag_found = True break if not tag_found: slice_attributes_to_add.append(requested_attribute)