git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/pycurl' into planetlab-4_0-branch
[plcapi.git]
/
PLC
/
Methods
/
GetPeerName.py
diff --git
a/PLC/Methods/GetPeerName.py
b/PLC/Methods/GetPeerName.py
index
9d0dc24
..
30fbd94
100644
(file)
--- a/
PLC/Methods/GetPeerName.py
+++ b/
PLC/Methods/GetPeerName.py
@@
-8,12
+8,12
@@
class GetPeerName (Method):
"""
Returns this peer's name, as defined in the config as PLC_NAME
"""
"""
Returns this peer's name, as defined in the config as PLC_NAME
"""
- roles = ['admin']
+
+ roles = ['admin', 'peer', 'node']
accepts = [Auth()]
accepts = [Auth()]
- returns = P
arameter (Peer.fields['peername'])
+ returns = P
eer.fields['peername']
def call (self, auth):
return self.api.config.PLC_NAME
def call (self, auth):
return self.api.config.PLC_NAME
-