git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python3 - 2to3 + miscell obvious tweaks
[sfa.git]
/
sfa
/
planetlab
/
pldriver.py
diff --git
a/sfa/planetlab/pldriver.py
b/sfa/planetlab/pldriver.py
index
6a917a4
..
0a21a8e
100644
(file)
--- 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']
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(
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
# 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']:
if key in ['first_name', 'last_name', 'title', 'email',
'password', 'phone', 'url', 'bio', 'accepted_aup',
'enabled']: