X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Fplanetlab%2Fpldriver.py;h=0a21a8eb64f52ac25b4e04b2a130efae66db4252;hp=6a917a4601623cf5fd11b2b89f435f7e86a0ba1f;hb=4a9e6751f9f396f463932133b9d62fc925a99ef6;hpb=648ac3fd865ea29425485f26eb0a7bf1a62281e0 diff --git a/sfa/planetlab/pldriver.py b/sfa/planetlab/pldriver.py index 6a917a46..0a21a8eb 100644 --- a/sfa/planetlab/pldriver.py +++ b/sfa/planetlab/pldriver.py @@ -136,7 +136,7 @@ class PlDriver (Driver): elif type == 'slice': acceptable_fields = ['url', 'instantiation', 'name', 'description'] - for key in pl_record.keys(): + for key in list(pl_record.keys()): if key not in acceptable_fields: pl_record.pop(key) slices = self.shell.GetSlices( @@ -234,7 +234,7 @@ class PlDriver (Driver): # this. I copied the field names from UpdatePerson.py... update_fields = {} all_fields = new_sfa_record - for key in all_fields.keys(): + for key in list(all_fields.keys()): if key in ['first_name', 'last_name', 'title', 'email', 'password', 'phone', 'url', 'bio', 'accepted_aup', 'enabled']: