git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
da1245e
)
fix GetPeerData()
author
Mohamed Larabi
<mohamed.larabi@inria.fr>
Tue, 3 Dec 2013 16:37:52 +0000
(17:37 +0100)
committer
Mohamed Larabi
<mohamed.larabi@inria.fr>
Tue, 3 Dec 2013 16:37:52 +0000
(17:37 +0100)
PLC/Methods/GetPeerData.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetPeerData.py
b/PLC/Methods/GetPeerData.py
index
1f0bc50
..
86193d0
100644
(file)
--- a/
PLC/Methods/GetPeerData.py
+++ b/
PLC/Methods/GetPeerData.py
@@
-59,12
+59,13
@@
class GetPeerData(Method):
person_fields = [ field for field in Person.fields if field \
not in ['password', 'verification_key', 'verification_expires']]
person_fields = [ field for field in Person.fields if field \
not in ['password', 'verification_key', 'verification_expires']]
- site_fields = Site.fields
- slice_fields = Slice.fields
+ site_fields = [field for field in Site.fields]
+ slice_fields = [field for field in Slice.fields]
+
try:
person_fields += ['sfa_created','hrn']
site_fields += ['sfa_created','hrn']
try:
person_fields += ['sfa_created','hrn']
site_fields += ['sfa_created','hrn']
- slice_fields +=['sfa_created','hrn']
+ slice_fields +=
['sfa_created','hrn']
# XXX Optimize to return only those Persons, Keys, and Slices
# necessary for slice creation on the calling peer's nodes.
# XXX Optimize to return only those Persons, Keys, and Slices
# necessary for slice creation on the calling peer's nodes.